def ttf.i16

gralha-truetype@0.1.0.1 · font.bend:97

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

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))

Uses (8)

Used by (5)