Expand description
Text extraction via a custom Device implementation.
Structs§
- Font
Metrics - Vertical font metrics in /1000 em (1000 units-per-em), sourced from the
embedded font’s OS/2 / hhea tables via skrifa.
ascentis positive (above the baseline);descentis negative (below it). The whole struct isNoneon a span when no embedded font binary exposes metrics (non-embedded standard-14, CFF, Type1, Type3). - Text
Block - A block of text (grouped by reading order).
- Text
Span - A single text span at a specific position.
Enums§
- Bounds
Source - Provenance of per-glyph bounding boxes.
- Geometry
Mode - Controls the richness of per-glyph geometry extraction.
- Width
Source - Whether a text span’s width was computed from real font metrics or estimated.