def ttf.cmap4.glyph

gralha-truetype@0.1.0.1 · font.bend:671

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

671def ttf.cmap4.glyph(+b: Bin.Bytes, +cp: U32, +start: U32, +delta: U32, +roAt: U32, +ro: U32) -> U32:
672  U.branch(U32, U32.is_eq(ro, 0), _ => U32.and((cp + delta : U32), 65535),
673    _ => ttf.cmap4.indexed(ttf.u16(b, (roAt + ro + (cp - start) * 2 : U32)), delta))

Uses (10)

Used by (1)