diff options
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 c9728c51fe5..10bbdb4851b 100644 --- a/source/blender/blenfont/intern/blf.c +++ b/source/blender/blenfont/intern/blf.c @@ -156,6 +156,15 @@ int BLF_load(char *name) return(i); } +void BLF_metrics_attach(unsigned char *mem, int mem_size) +{ + FontBLF *font; + + font= global_font[global_font_cur]; + if (font) + blf_font_attach_from_mem(font, mem, mem_size); +} + int BLF_load_mem(char *name, unsigned char *mem, int mem_size) { FontBLF *font; |