def ttf.i8

gralha-truetype@0.1.0.1 · font.bend:101

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

101def ttf.i8(+b: Bin.Bytes, +at: U32) -> F32:
102  +v = ttf.u8(b, at)
103  U.choose(F32, U32.is_ge(v, 128), (U32.to_f32(v) - 256.0 : F32), U32.to_f32(v))

Uses (8)

Used by (1)