def ttf.kern.specific
gralha-truetype@0.1.0.1 · font.bend:749
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
749
750def ttf.kern.specific(+b: Bin.Bytes, subs: List<&2, U32>, +left: U32, +right: U32) -> F32:
751 match subs:
752 case Nil{}: 1000000.0
753 case Con{sub, rest}:
754 +v = ttf.kern.subtable(b, sub, left, right)
755 U.branch(F32, F32.is_eq(v, 1000000.0), _ => ttf.kern.specific(b, rest, left, right), _ => v)