def ttf.table
import gralha-truetype@0.1.0.1/font.bend as Fontimport 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)