Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2009-04-10 18:06:24 +0400
committerTon Roosendaal <ton@blender.org>2009-04-10 18:06:24 +0400
commitd2cc19dcc65e2684894ba5b1e413b4b69cb09742 (patch)
tree5a221755b635251d3a42f68cc80a2dc91eae7ec1 /source/blender/blenfont
parenta4c4ee2f99da48012e1a85d295cf1baf3bec3f95 (diff)
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.
Diffstat (limited to 'source/blender/blenfont')
-rw-r--r--source/blender/blenfont/intern/blf_font.c5
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;