def ttf.coverage.glyph
import gralha-truetype@0.1.0.1/font.bend as Fontimport Base
import gralha-text-scan@0.1.0.1/scan.bend as U
import gralha-bytes@0.1.0.1/bytes.bend as Bin
613# The glyph at a coverage index (format 2 walks its ranges).
614def ttf.coverage.glyph(+b: Bin.Bytes, +cov: U32, +index: U32) -> U32:
615 U.branch(U32, U32.is_eq(ttf.u16(b, cov), 1), _ => ttf.u16(b, (cov + 4 + index * 2 : U32)),
616 _ => ttf.coverage.walk(b, U32.to_nat(ttf.u16(b, (cov + 2 : U32))), (cov + 4 : U32), index))
Uses (9)
Used by (0)
No other definition uses this definition.