PaperForge.Fonts.Metrics (PaperForge v0.2.0)

Copy Markdown View Source

Character-width metrics for standard PDF fonts.

Widths are stored in units of one thousandth of an em.

For example, a glyph width of 600 at 12 points occupies:

600 / 1000 * 12 = 7.2 points

Summary

Functions

Returns the width of one codepoint in one-thousandth-em units.

Functions

width(font_key, codepoint)

Returns the width of one codepoint in one-thousandth-em units.