PdfGlyphPlacement class
One glyph within a PdfTextRun: its outline (when the font is embedded and parsed) and its pen offset, both in em units.
Constructors
- PdfGlyphPlacement({required double offset, double offsetY = 0, PdfPath? outline, String? text})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- offset → double
-
Horizontal pen position within the run, in em units.
final
- offsetY → double
-
Vertical pen position within the run, in em units. Non-zero only for
vertical writing mode (§9.7.4.3), where glyphs stack downward and each
carries a position-vector offset; 0 for ordinary horizontal text.
final
- outline → PdfPath?
-
Glyph outline in em units (y-up, origin on the baseline), or null when
the glyph is blank or its outline could not be parsed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String?
-
Best-effort Unicode mapped from this one PDF character code. A glyph can
map to multiple logical characters through /ToUnicode (for example an
Arabic ligature), so text extraction must preserve this boundary while
converting visual glyph order back to logical order.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited