def ttf.i16
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
97def ttf.i16(+b: Bin.Bytes, +at: U32) -> F32:
98 +v = ttf.u16(b, at)
99 U.choose(F32, U32.is_ge(v, 32768), (U32.to_f32(v) - 65536.0 : F32), U32.to_f32(v))