diff options
Diffstat (limited to 'source/blender/blenfont')
-rw-r--r-- | source/blender/blenfont/intern/blf_font.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/blenfont/intern/blf_font.c b/source/blender/blenfont/intern/blf_font.c index b510832cbdd..9a4c0fdfa30 100644 --- a/source/blender/blenfont/intern/blf_font.c +++ b/source/blender/blenfont/intern/blf_font.c @@ -154,9 +154,8 @@ void blf_font_draw(FontBLF *font, char *str) pen_x += delta.x >> 6; } - /* This only return zero if the clipping is enable and the glyph is out of the clip rctf. */ - if (blf_glyph_render(font, g, (float)pen_x, (float)pen_y) == 0) - break; + /* do not return this loop if clipped, we want every character tested */ + blf_glyph_render(font, g, (float)pen_x, (float)pen_y); pen_x += g->advance; g_prev= g; |