diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2022-09-24 20:55:46 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2022-09-24 20:57:34 +0300 |
commit | 4e7983e0732015d9fe52ecd12e203a230b30af16 (patch) | |
tree | 9bab0be140084c783ba930bf819996eed0bb1832 /source/blender/blenfont/intern/blf_font.c | |
parent | 2ff5d42cd3b41cc1412d4a896d8f9e8d2977686f (diff) |
UI: Improved Font Thumbnails
Thumbnails of fonts that better show design, shapes, contents, intent,
and intended language. Previews almost every known language - living
and dead - and symbol, specialty fonts, etc.
See D12032 for more details and samples.
Differential Revision: https://developer.blender.org/D12032
Reviewed by Campbell Barton
Diffstat (limited to 'source/blender/blenfont/intern/blf_font.c')
-rw-r--r-- | source/blender/blenfont/intern/blf_font.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/source/blender/blenfont/intern/blf_font.c b/source/blender/blenfont/intern/blf_font.c index 3d7e83bc22f..9ea7e529df2 100644 --- a/source/blender/blenfont/intern/blf_font.c +++ b/source/blender/blenfont/intern/blf_font.c @@ -1146,38 +1146,6 @@ void blf_font_draw_buffer__wrap(FontBLF *font, /** \} */ /* -------------------------------------------------------------------- */ -/** \name Text Evaluation: Count Missing Characters - * \{ */ - -int blf_font_count_missing_chars(FontBLF *font, - const char *str, - const size_t str_len, - int *r_tot_chars) -{ - int missing = 0; - size_t i = 0; - - *r_tot_chars = 0; - while (i < str_len) { - uint c; - - if ((c = str[i]) < GLYPH_ASCII_TABLE_SIZE) { - i++; - } - else { - c = BLI_str_utf8_as_unicode_step(str, str_len, &i); - if (blf_get_char_index(font, c) == 0) { - missing++; - } - } - (*r_tot_chars)++; - } - return missing; -} - -/** \} */ - -/* -------------------------------------------------------------------- */ /** \name Font Query: Attributes * \{ */ |