def ttf.assemble.step

gralha-truetype@0.1.0.1 · font.bend:365

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

365# Read the component at the frame's offset: a simple child is placed at once, a
366# composite child opens a new frame above the advanced parent.
367def ttf.assemble.step(+b: Bin.Bytes, +f: TTFont, frame: TTFrame, parents: List<&2, TTFrame>) -> List<&2, TTFrame>:
368  TTFrame{at, acc, place} = frame
369  +a = at
370  +flags = ttf.u16(b, a)
371  ttf.assemble.child(b, f, TTFrame{a, acc, place}, parents, ttf.location(b, f, ttf.u16(b, (a + 2 : U32))), ttf.component.place(b, a, flags), ttf.component.next(a, flags))

Uses (11)

Used by (1)