Package com.itextpdf.kernel.pdf.canvas
Class PdfCanvasConstants.TextRenderingMode
- java.lang.Object
-
- com.itextpdf.kernel.pdf.canvas.PdfCanvasConstants.TextRenderingMode
-
- Enclosing class:
- PdfCanvasConstants
public static final class PdfCanvasConstants.TextRenderingMode extends java.lang.Object
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".
-
-
Field Summary
Fields Modifier and Type Field Description static int
CLIP
Add text to path for clippingstatic int
FILL
Fill textstatic int
FILL_CLIP
Fill text and add to path for clippingstatic int
FILL_STROKE
Fill and stroke textstatic int
FILL_STROKE_CLIP
Fill, then stroke text and add to path for clippingstatic int
INVISIBLE
Neither fill nor stroke, i.e.static int
STROKE
Stroke text, providing the outline of the glyphsstatic int
STROKE_CLIP
Stroke text and add to path for clipping
-
Constructor Summary
Constructors Modifier Constructor Description private
TextRenderingMode()
-
-
-
Field Detail
-
FILL
public static final int FILL
Fill text- See Also:
- Constant Field Values
-
STROKE
public static final int STROKE
Stroke text, providing the outline of the glyphs- See Also:
- Constant Field Values
-
FILL_STROKE
public static final int FILL_STROKE
Fill and stroke text- See Also:
- Constant Field Values
-
INVISIBLE
public static final int INVISIBLE
Neither fill nor stroke, i.e. render invisibly- See Also:
- Constant Field Values
-
FILL_CLIP
public static final int FILL_CLIP
Fill text and add to path for clipping- See Also:
- Constant Field Values
-
STROKE_CLIP
public static final int STROKE_CLIP
Stroke text and add to path for clipping- See Also:
- Constant Field Values
-
FILL_STROKE_CLIP
public static final int FILL_STROKE_CLIP
Fill, then stroke text and add to path for clipping- See Also:
- Constant Field Values
-
CLIP
public static final int CLIP
Add text to path for clipping- See Also:
- Constant Field Values
-
-