diff options
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); |
