Font.ttf.component.next: def of gralha-truetype@0.1.0.1 Import: import gralha-truetype@0.1.0.1/font.bend as Font Lines 331-335 of gralha-truetype@0.1.0.1/font.bend: https://jend.leeeet.dev/read.txt?path=gralha-truetype@0.1.0.1/font.bend&start_line=331&end_line=335 import Base import gralha-text-scan@0.1.0.1/scan.bend as U # Byte offset of the component after the one at `at`, or 0 when it was the last. def ttf.component.next(+at: U32, +flags: U32) -> U32: +at2 = (at + U.choose(U32, ttf.bit(flags, 1), 8, 6) : U32) +at3 = (at2 + U.choose(U32, ttf.bit(flags, 8), 2, U.choose(U32, ttf.bit(flags, 64), 4, U.choose(U32, ttf.bit(flags, 128), 8, 0))) : U32) U.choose(U32, ttf.bit(flags, 32), at3, 0) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=gralha-text-scan@0.1.0.1/scan.bend&name=choose https://jend.leeeet.dev/definition.txt?path=gralha-truetype@0.1.0.1/font.bend&name=ttf.bit