diff options
author | Michael Fox <mfoxdogg@gmail.com> | 2010-11-27 01:12:46 +0300 |
---|---|---|
committer | Michael Fox <mfoxdogg@gmail.com> | 2010-11-27 01:12:46 +0300 |
commit | d47a519cbb70fabe7a105fee31be86d181541dbb (patch) | |
tree | d42b3159e66784d1aa4dd6bf72148f923ee7dd54 /source/blender/blenfont/intern/blf.c | |
parent | 8f4d8ad5bc173ab38a18c380dc5a5161eab6aa17 (diff) |
added option to turn off Text anti-aliasing in the UI
(userpref->system), with a great help from brecht (its been way too long
for me).
However as brecht pointed out that the non-AA text is slightly lareger
then AA'ed Text :S, i did not do anything about this as this commit was
just the option not the text drawing.
this commit also makes it possible to do all kinds of UI textrender options
Diffstat (limited to 'source/blender/blenfont/intern/blf.c')
-rw-r--r-- | source/blender/blenfont/intern/blf.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/blenfont/intern/blf.c b/source/blender/blenfont/intern/blf.c index eb7a89bf840..febd3d9d6f7 100644 --- a/source/blender/blenfont/intern/blf.c +++ b/source/blender/blenfont/intern/blf.c @@ -103,6 +103,18 @@ void BLF_exit(void) blf_font_exit(); } +void BLF_cache_clear(void) +{ + FontBLF *font; + int i; + + for (i= 0; i < global_font_num; i++) { + font= global_font[i]; + if (font) + blf_glyph_cache_clear(font); + } +} + static int blf_search(const char *name) { FontBLF *font; |