def ttf.valid

gralha-truetype@0.1.0.1 · font.bend:127

import gralha-truetype@0.1.0.1/font.bend as Font
import 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)

Uses (6)

Used by (2)