diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-02-17 16:07:18 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-03-25 18:39:58 +0300 |
commit | 68e341e9d59ae917eba992591f4f60660f6c58ff (patch) | |
tree | 91db37d064f5f4ef50fa1dfd1168d4fa69094fc5 /source/blender/blenfont/BLF_api.h | |
parent | 9070999c216b87f848dfd9a129b95e3d45a33fb3 (diff) |
UI: remove non-unicode font and simplify default font loading code
There is no need to have another font embedded in the Blender executable, we
can assume the bundled font exists. In the future we may provide a fallback
if the font specified by the user in the preferences is missing a character,
but that can use our bundled international font.
Differential Revision: https://developer.blender.org/D6854
Diffstat (limited to 'source/blender/blenfont/BLF_api.h')
-rw-r--r-- | source/blender/blenfont/BLF_api.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/blenfont/BLF_api.h b/source/blender/blenfont/BLF_api.h index fd6411f7c69..9aee8c9b78b 100644 --- a/source/blender/blenfont/BLF_api.h +++ b/source/blender/blenfont/BLF_api.h @@ -238,11 +238,9 @@ void BLF_thumb_preview(const char *filename, int h, int channels) ATTR_NONNULL(); -/* blf_font_i18.c */ -unsigned char *BLF_get_unifont(int *unifont_size); -void BLF_free_unifont(void); -unsigned char *BLF_get_unifont_mono(int *unifont_size); -void BLF_free_unifont_mono(void); +/* blf_font_default.c */ +int BLF_load_default(const bool unique); +int BLF_load_mono_default(const bool unique); #ifdef DEBUG void BLF_state_print(int fontid); |