def ttf.coverage

gralha-truetype@0.1.0.1 · font.bend:599

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

599def ttf.coverage(+b: Bin.Bytes, +cov: U32, +gid: U32) -> U32:
600  +count = ttf.u16(b, (cov + 2 : U32))
601  U.branch(U32, U32.is_eq(cov, 0), _ => 0,
602    _ => U.branch(U32, U32.is_eq(ttf.u16(b, cov), 1), _ => ttf.coverage.array(b, 20n, (cov + 4 : U32), 0, count, gid), _ => ttf.coverage.ranges(b, 20n, (cov + 4 : U32), 0, count, gid)))

Uses (8)

Used by (2)