fonts/font_line_metrics_patch library
Functions
-
patchFontAscentDescent(
ByteData bytes, double ascentEm, double descentEm) → ByteData -
byteswith the ascent and descentascentEmanddescentEm, in em, and no line gap. Returnsbytesif it is not a TrueType or OpenType file with head and hhea tables. -
patchFontLineMetrics(
ByteData bytes, String fontFamily, {double clearance = kLineHeightClearance}) → ByteData -
byteswith the ascent and descent centred on the font's Latin ink.