Modules§
Structs§
- Font
- A data structure containing Font information, but also related textual properties (such as color)
Constants§
Statics§
Functions§
- decode
- decode_
fontname - decode_
str - Decode a codepoint, returning a SymStr that may contain multiple characters.
This handles Perl font map entries like
UTF(0xA0)."\x{0335}"(OT1 pos 32). - decode_
string - font_
match_ xpaths - Generate XPath fragments for font matching. Perl: font_match_xpaths
- get_
metric_ for_ name - Find a Font Metric for a given fontname, fallback to 10pt or cmr as needed. Perl: getMetricForName
- lookup_
font_ family - Global auxiliary for font family lookup
- lookup_
font_ series - Global auxiliary for font series lookup
- lookup_
font_ shape - Global auxiliary for font shape lookup
- lookup_
tex_ font - Combine family/series/shape lookups into a single Font (Perl lookupTeXFont)
- match_
font - Matches fonts when both are converted to toString strings. Uses regex caching for repeated lookups. Perl: match_font
- rationalize_
font_ size - Convert stanard font size names, such as
tiny,Huge, etc to f64 - relative_
font_ size - convert size to percent