iText 8.0.2 API
iText.Kernel.Pdf.Canvas.PdfCanvasConstants.TextRenderingMode Class Reference

The text rendering mode determines whether showing text causes glyph outlines to be stroked, filled, used as a clipping boundary, or some combination of the three. More...

Static Public Attributes

const int  FILL = 0
  Fill text More...
 
const int  STROKE = 1
  Stroke text, providing the outline of the glyphs More...
 
const int  FILL_STROKE = 2
  Fill and stroke text More...
 
const int  INVISIBLE = 3
  Neither fill nor stroke, i.e. render invisibly More...
 
const int  FILL_CLIP = 4
  Fill text and add to path for clipping More...
 
const int  STROKE_CLIP = 5
  Stroke text and add to path for clipping More...
 
const int  FILL_STROKE_CLIP = 6
  Fill, then stroke text and add to path for clipping More...
 
const int  CLIP = 7
  Add text to path for clipping More...
 

Detailed Description

The text rendering mode determines whether showing text causes glyph outlines to be stroked, filled, used as a clipping boundary, or some combination of the three.

The text rendering mode determines whether showing text causes glyph outlines to be stroked, filled, used as a clipping boundary, or some combination of the three. Stroking, filling, and clipping have the same effects for a text object as they do for a path object, although they are specified in an entirely different way. If the text rendering mode calls for filling, the current nonstroking color in the graphics state is used; if it calls for stroking, the current stroking color is used. All documentation for this class is taken from ISO 32000-1, section 9.3.6 "Text Rendering Mode".

Member Data Documentation

◆ CLIP

const int iText.Kernel.Pdf.Canvas.PdfCanvasConstants.TextRenderingMode.CLIP = 7
static

Add text to path for clipping

◆ FILL

const int iText.Kernel.Pdf.Canvas.PdfCanvasConstants.TextRenderingMode.FILL = 0
static

Fill text

◆ FILL_CLIP

const int iText.Kernel.Pdf.Canvas.PdfCanvasConstants.TextRenderingMode.FILL_CLIP = 4
static

Fill text and add to path for clipping

◆ FILL_STROKE

const int iText.Kernel.Pdf.Canvas.PdfCanvasConstants.TextRenderingMode.FILL_STROKE = 2
static

Fill and stroke text

◆ FILL_STROKE_CLIP

const int iText.Kernel.Pdf.Canvas.PdfCanvasConstants.TextRenderingMode.FILL_STROKE_CLIP = 6
static

Fill, then stroke text and add to path for clipping

◆ INVISIBLE

const int iText.Kernel.Pdf.Canvas.PdfCanvasConstants.TextRenderingMode.INVISIBLE = 3
static

Neither fill nor stroke, i.e. render invisibly

◆ STROKE

const int iText.Kernel.Pdf.Canvas.PdfCanvasConstants.TextRenderingMode.STROKE = 1
static

Stroke text, providing the outline of the glyphs

◆ STROKE_CLIP

const int iText.Kernel.Pdf.Canvas.PdfCanvasConstants.TextRenderingMode.STROKE_CLIP = 5
static

Stroke text and add to path for clipping