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 /intern/ghost/test/multitest | |
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 'intern/ghost/test/multitest')
-rw-r--r-- | intern/ghost/test/multitest/MultiTest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/test/multitest/MultiTest.c b/intern/ghost/test/multitest/MultiTest.c index 75aa0119a7f..5ddcb2470a8 100644 --- a/intern/ghost/test/multitest/MultiTest.c +++ b/intern/ghost/test/multitest/MultiTest.c @@ -595,7 +595,7 @@ LoggerWindow *loggerwindow_new(MultiTestApp *app) lw->app = app; lw->win = win; - lw->font = BLF_load_mem("default", (unsigned char *)datatoc_bfont_ttf, datatoc_bfont_ttf_size); + lw->font = BLF_load_default(false); BLF_size(lw->font, 11, 72); lw->fontheight = BLF_height(lw->font, "A_", 2); |