From efd1a69d6c12d97594c93857365547a56e6792e9 Mon Sep 17 00:00:00 2001 From: Diego Borghetti Date: Thu, 23 Apr 2009 21:57:41 +0000 Subject: Move texture draw to blf_util.c, now both font used it. A little cleanup on the internal font, it's possible load the old bmfont with: BLF_load_mem(name, NULL, 0) where name can be: helv, helvb or scr. Note that the internal font also support both draw, texture and bitmap, by default always used texture. Remove some old lang function that I left there and don't exist any more because the locale are now in the RNA. Small changes to Style's, so if we build without freetype2 by default go back to the internal font, this is a little ugly (and have the old problem of scale) but now blender always show text (need work a little more there). --- source/blender/blenfont/intern/blf_internal.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/blenfont/intern/blf_internal.h') diff --git a/source/blender/blenfont/intern/blf_internal.h b/source/blender/blenfont/intern/blf_internal.h index 87d5938db9c..a042eefb4d9 100644 --- a/source/blender/blenfont/intern/blf_internal.h +++ b/source/blender/blenfont/intern/blf_internal.h @@ -32,6 +32,10 @@ unsigned int blf_next_p2(unsigned int x); unsigned int blf_hash(unsigned int val); int blf_utf8_next(unsigned char *buf, int *iindex); +void blf_texture_draw(float uv[2][2], float dx, float y1, float dx1, float y2); +void blf_texture5_draw(float uv[2][2], float x1, float y1, float x2, float y2); +void blf_texture3_draw(float uv[2][2], float x1, float y1, float x2, float y2); + char *blf_dir_search(const char *file); int blf_dir_split(const char *str, char *file, int *size); -- cgit v1.2.3