diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-16 15:49:12 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-18 23:44:42 -0300 |
| commit | 1551e409c31992437cb2fa864f576d45c8433801 (patch) | |
| tree | e2fae8451f87b735a1360c7c2e383fdc40165789 /src/gui/font.h | |
| parent | be2a9957708cbf0c478ca861c4a1f0f227bbfe10 (diff) | |
| download | pardes-1551e409c31992437cb2fa864f576d45c8433801.tar.gz pardes-1551e409c31992437cb2fa864f576d45c8433801.zip | |
big slow change: prebuilt shaders (SPIR-V/Metal), core gui reflow, docs, web + snapshot refresh
Diffstat (limited to 'src/gui/font.h')
| -rw-r--r-- | src/gui/font.h | 5 |
1 files changed, 5 insertions, 0 deletions
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); |
