def ttf.valid
import gralha-truetype@0.1.0.1/font.bend as Fontimport Base
127def ttf.valid(+f: TTFont) -> Bool:
128 TTFont{glyf, loca, long, hmtx, metrics, glyphs, units} = f
129 U32.is_ne(glyf, 0) && U32.is_ne(loca, 0) && U32.is_ne(hmtx, 0) && U32.is_gt(metrics, 0) && F32.is_gt(units, 0.0)