Expand description
§Font Management
Loading, parsing, and subsetting fonts for PDF embedding.
For v1, we support the 14 standard PDF fonts (Helvetica, Times, Courier, etc.) which don’t require embedding. Custom font support via ttf-parser comes next.
Re-exports§
pub use metrics::unicode_to_winansi;pub use metrics::StandardFontMetrics;
Modules§
- builtin
- Builtin Unicode fallback fonts.
- fallback
- Per-Character Font Fallback
- metrics
- Standard Font Metrics
- subset
- TrueType Font Subsetter
Structs§
- Custom
Font Metrics - Parsed metrics from a TrueType/OpenType font via ttf-parser.
- Font
Context - Shared font context used by layout and PDF serialization. Provides text measurement with real glyph metrics.
- FontKey
- Font
Registry - A font registry that maps font family + weight + style to font data.
Enums§
- Font
Data - Standard
Font - The 14 standard PDF fonts.