Correct assert from 22ab0159a9

This commit is contained in:
Campbell Barton 2021-08-19 17:55:40 +10:00
parent cf72194214
commit 4db4123409
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {