fonts/font_size_adjust library

Properties

fontSizeAdjustEnabled → bool
The size adjust: a font's letters are made the reference size in its bytes, not in its font size (docs/design/ADR_font_size_adjust.md in telosnex).
no setter

Functions

adjustedUnitsPerEm(String fontFamily, int unitsPerEm) → int?
head.unitsPerEm that the size adjust writes for a file of fontFamily with unitsPerEm, or null if it does not scale the family.
fontEmScale(String? fontFamily) → double
The size of the em of fontFamily as it loads, in ems of its file.
isFontSizeAdjusted(String? fontFamily) → bool
Whether the size adjust scales fontFamily's bytes.
setFontSizeAdjustEnabled(bool enabled) → void
Sets fontSizeAdjustEnabled. Only MonetFonts.install calls it.