From 1551e409c31992437cb2fa864f576d45c8433801 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 16 Aug 2026 15:49:12 -0300 Subject: big slow change: prebuilt shaders (SPIR-V/Metal), core gui reflow, docs, web + snapshot refresh --- src/gui/font.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/font.h') diff --git a/src/gui/font.h b/src/gui/font.h index 050fbeb0..2aff8b1a 100644 --- a/src/gui/font.h +++ b/src/gui/font.h @@ -15,6 +15,11 @@ typedef struct UIFont UIFont; // lifetime of the font. Returns NULL on failure. UIFont *ui_font_new(const uint8_t *data, int32_t len); +// The face FreeType actually accepted. Prefer its PostScript name (the same +// identity the macOS shell reports); fall back to the family name when the +// font has no PostScript table. Borrowed for the UIFont lifetime. +const char *ui_font_name(UIFont *f); + // Whether the selected Unicode charmap maps `cp` to a real glyph. Glyph zero is // the face's .notdef box and deliberately does not count for fallback choice. int ui_font_has_glyph(UIFont *f, int32_t cp); -- cgit v1.3