diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2021-08-14 23:50:51 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2021-08-14 23:50:51 +0300 |
commit | d5261e973b5624b40b80771903e9d2a0c9ff37e4 (patch) | |
tree | 339ca533c494a5714f2a02dcea90122b15e82ae8 /source/blender/blenfont/intern/blf_internal_types.h | |
parent | 8f2b60ddbfea800ac155d9419e8d237c791fcda9 (diff) |
BLF: Do Not Preload Glyph Cache
This patch turns off the preloading of ascii glyphs and instead caches
each glyph the first time it is actually used.
See D12215 for much more detail.
Differential Revision: https://developer.blender.org/D12215
Reviewed by Campbell Barton
Diffstat (limited to 'source/blender/blenfont/intern/blf_internal_types.h')
-rw-r--r-- | source/blender/blenfont/intern/blf_internal_types.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/blenfont/intern/blf_internal_types.h b/source/blender/blenfont/intern/blf_internal_types.h index 1cd004ce77f..6bcacc62a30 100644 --- a/source/blender/blenfont/intern/blf_internal_types.h +++ b/source/blender/blenfont/intern/blf_internal_types.h @@ -31,10 +31,6 @@ /* Number of characters in GlyphCacheBLF.glyph_ascii_table. */ #define GLYPH_ASCII_TABLE_SIZE 128 -/* First and last characters (inclusive) of range to cache within GLYPH_ASCII_TABLE_SIZE. */ -#define GLYPH_ASCII_CACHE_MIN 32 /* Space */ -#define GLYPH_ASCII_CACHE_MAX 126 /* Tilde */ - /* Number of characters in KerningCacheBLF.table. */ #define KERNING_CACHE_TABLE_SIZE 128 |