From d2cc19dcc65e2684894ba5b1e413b4b69cb09742 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Fri, 10 Apr 2009 14:06:24 +0000 Subject: 2.5 More font style work; - hooked up almost all ui buttons code to new font system, including text clipping - panel headers scale now too to smaller fonts - added further style hints, for shadow/emboss. Is all going to be in UI designer control! - for fun; changed layout engine to spread vertical buttons in window width Next: removal of all usage of old font system, using 'styles'. Will also move font blurring to blenfont module. --- source/blender/blenfont/intern/blf_font.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/blender/blenfont') 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; -- cgit v1.2.3