fonts/font_line_metrics_patch library

Functions

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