def ttf.table

gralha-truetype@0.1.0.1 · font.bend:116

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

116# Table offset by tag, read as a big-endian word; 0 when absent.
117def ttf.table(+b: Bin.Bytes, +tag: U32) -> U32:
118  ttf.table.find(b, U32.to_nat(ttf.u16(b, 4)), 12, tag)

Uses (5)

Used by (4)