def ttf.font

gralha-truetype@0.1.0.1 · font.bend:120

import gralha-truetype@0.1.0.1/font.bend as Font
import Base
import gralha-bytes@0.1.0.1/bytes.bend as Bin

120def ttf.font(+b: Bin.Bytes) -> TTFont:
121  +head = ttf.table(b, 1751474532)
122  +maxp = ttf.table(b, 1835104368)
123  +hhea = ttf.table(b, 1751672161)
124  TTFont{ttf.table(b, 1735162214), ttf.table(b, 1819239265), U32.is_ne(ttf.u16(b, (head + 50 : U32)), 0), ttf.table(b, 1752003704),
125    ttf.u16(b, (hhea + 34 : U32)), ttf.u16(b, (maxp + 4 : U32)), U32.to_f32(ttf.u16(b, (head + 18 : U32)))}

Uses (8)

Used by (1)