diff options
author | Ton Roosendaal <ton@blender.org> | 2009-04-10 18:27:29 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-04-10 18:27:29 +0400 |
commit | 61249337817d3699ca961c9e4007cb0cdb232051 (patch) | |
tree | 67efe8fd93e3c368c97008210a1e3211964bf0aa /source/blender/blenfont/intern/blf.c | |
parent | d2cc19dcc65e2684894ba5b1e413b4b69cb09742 (diff) |
2.5
Nicer implementation of blurred font draw, moved to blenfont
module. Set it with BLF_blur(value). Current kernels implemented
are 3 and 5 only. Blenfont module can extend this once.
Diffstat (limited to 'source/blender/blenfont/intern/blf.c')
-rw-r--r-- | source/blender/blenfont/intern/blf.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/blenfont/intern/blf.c b/source/blender/blenfont/intern/blf.c index 686e54e4986..e5c1e675294 100644 --- a/source/blender/blenfont/intern/blf.c +++ b/source/blender/blenfont/intern/blf.c @@ -280,6 +280,15 @@ void BLF_size(int size, int dpi) (*font->size_set)(font, size, dpi); } +void BLF_blur(int size) +{ + FontBLF *font; + + font= global_font[global_font_cur]; + if (font) + font->blur= size; +} + void BLF_draw(char *str) { FontBLF *font; |