Gets character widths for a range of characters. Widths are scaled to PDF's 1000-unit em square.
Returns the original font bytes.
Creates a FontDescriptor suitable for embedding. Scales metrics to PDF's 1000-unit em square.
OptionalfontName: stringParses the font and returns basic font information.
Parses the font's cmap table to extract Unicode to glyph ID mappings.
A map from Unicode code points to glyph IDs
Parses the font's hmtx table to extract glyph advance widths.
A map from glyph IDs to advance widths (in font units)
Parses TrueType font files (.ttf) to extract metrics and glyph widths.