TextGlyph
One glyph laid out from a Tj / TJ show-text byte string.
The presence of TextGlyph lets the renderer walk a code-unit-aware sequence rather than iterating bytes one at a time. Type 0 composite fonts need this, because each glyph consumes 2 bytes (Identity-H) or other variable-length CMap encodings.
Simple fonts produce one TextGlyph per byte; CIDFonts produce one per (1- or 2-byte) code unit consumed from the input.
Constructors
Properties
Extra pen advance in text-space units (Tc char spacing plus Tw word spacing), applied AFTER the advanceWidth * fontSize / 1000 scaling. Unlike xOffset this is not in font design units. Zero by default.
Glyph advance width in font design units (1/1000 em for most fonts).
Byte offset in the input where this code unit started.
True iff this code unit corresponds to ASCII space (0x20). Needed for Tw word spacing.