diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2021-08-11 23:55:58 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2021-08-11 23:55:58 +0300 |
commit | cd1bb63159215396662ce49c8bc8d6d437114093 (patch) | |
tree | db30bbf6a81ebe2a642c5da72e4017010389be65 /source/blender/makesdna/DNA_mesh_types.h | |
parent | bb487bc2bc82c02922722efb3ca1d2570d907ad9 (diff) |
BLF: Do Not Cache Unused Rendered Glyphs
The loading of a font size or style renders bitmaps of the characters
0-255 and stores them in a cache. But glyphs 128-255 in this cache are
not accessible. What used to be ansi high-bit characters are now multi-
byte UTF-8 sequences.
Therefore this patch reduces the glyph_ascii_table size to 128 and
only caches characters 32-127, the visible portion of ASCII, which
greatly reduces the time to load a font.
See D12189 for more details.
Differential Revision: https://developer.blender.org/D12189
Reviewed by Campbell Barton
Diffstat (limited to 'source/blender/makesdna/DNA_mesh_types.h')
0 files changed, 0 insertions, 0 deletions