module HexaPDF:: Content:: TextRenderingMode
Defines all available text rendering modes as constants. Each text rendering mode is an instance of NamedValue. For use with e.g. Canvas#text_rendering_mode.
See: PDF2.0 s9.3.6
Constants
- CLIP¶
Add text to path for clipping.
Specify as 7 or
:clip.- FILL¶
Fill text.
Specify as 0 or
:fill.- FILL_CLIP¶
Fill text and add to path for clipping.
Specify as 4 or
:fill_clip.- FILL_STROKE¶
Fill, then stroke text.
Specify as 2 or
:fill_stroke.- FILL_STROKE_CLIP¶
Fill, then stroke text and add to path for clipping.
Specify as 6 or
:fill_stroke_clip.- INVISIBLE¶
Neither fill nor stroke text (invisible).
Specify as 3 or
:invisible.- STROKE¶
Stroke text.
Specify as 1 or
:stroke.- STROKE_CLIP¶
Stroke text and add to path for clipping.
Specify as 5 or
:stroke_clip.
Public Class Methods
Returns the argument normalized to a valid text rendering mode, i.e. a NamedValue instance.
-
0 or
:fillcan be used for theFILLmode. -
1 or
:strokecan be used for theSTROKEmode. -
2 or
:fill_strokecan be used for theFILL_STROKEmode. -
3 or
:invisiblecan be used for theINVISIBLEmode. -
4 or
:fill_clipcan be used for theFILL_CLIPmode. -
5 or
:stroke_clipcan be used for theSTROKE_CLIPmode. -
6 or
:fill_stroke_clipcan be used for theFILL_STROKE_CLIPmode. -
7 or
:clipcan be used for theCLIPmode. -
Otherwise an error is raised.







