def font.metric

gralha-truetype@0.1.0.1 · font.bend:39

import gralha-truetype@0.1.0.1/font.bend as Font
import Base

39def font.metric(book: FontBook, face: U32, name: String, fallback: F32) -> F32:
40  FontBook{glyphs, kerning, faceMetrics, faces} = book
41  font.number.result(Map.get(F32, fallback, faceMetrics, U32.show(face) ++ ":" ++ name))

Uses (8)

Used by (2)