Skip to main content

Module font

Module font 

Source
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§

CustomFontMetrics
Parsed metrics from a TrueType/OpenType font via ttf-parser.
FontContext
Shared font context used by layout and PDF serialization. Provides text measurement with real glyph metrics.
FontKey
FontRegistry
A font registry that maps font family + weight + style to font data.

Enums§

FontData
StandardFont
The 14 standard PDF fonts.