diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-08-19 10:55:40 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-08-19 10:56:25 +0300 |
commit | 4db4123409de6f42a519cd03275d680b3d821298 (patch) | |
tree | e181a3c560f653e131e362dfaf6a9ff1afe7211f /source/blender/blenfont | |
parent | cf721942149057684c089c0677c224dbe9d90c52 (diff) |
Correct assert from 22ab0159a9754365e2d10a1bc658d4409d084fa6
Diffstat (limited to 'source/blender/blenfont')
-rw-r--r-- | source/blender/blenfont/intern/blf_font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenfont/intern/blf_font.c b/source/blender/blenfont/intern/blf_font.c index 9ddc788d2dc..00d3cfb09eb 100644 --- a/source/blender/blenfont/intern/blf_font.c +++ b/source/blender/blenfont/intern/blf_font.c @@ -356,7 +356,7 @@ BLI_INLINE void blf_kerning_step_fast(FontBLF *font, int *pen_x_p) { /* `blf_font_ensure_ascii_kerning(font, gc);` must be called before this function. */ - BLI_assert(font->kerning_cache != NULL); + BLI_assert(font->kerning_cache != NULL || !FT_HAS_KERNING(font->face)); if (g_prev != NULL && FT_HAS_KERNING(font->face)) { if ((c_prev < KERNING_CACHE_TABLE_SIZE) && (c < GLYPH_ASCII_TABLE_SIZE)) { |