diff options
Diffstat (limited to 'source/blender/blenfont/intern/blf_internal.h')
-rw-r--r-- | source/blender/blenfont/intern/blf_internal.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/source/blender/blenfont/intern/blf_internal.h b/source/blender/blenfont/intern/blf_internal.h index 8af94a8fb99..6bb7578935f 100644 --- a/source/blender/blenfont/intern/blf_internal.h +++ b/source/blender/blenfont/intern/blf_internal.h @@ -35,4 +35,27 @@ int blf_utf8_next(unsigned char *buf, int *iindex); char *blf_dir_search(const char *file); int blf_dir_split(const char *str, char *file, int *size); +#ifdef WITH_FREETYPE2 + +int blf_font_init(void); +void blf_font_exit(void); + +FontBLF *blf_font_new(char *name, char *filename); +FontBLF *blf_font_new_from_mem(char *name, unsigned char *mem, int mem_size); + +void blf_font_free(FontBLF *font); +void blf_font_size(FontBLF *font, int size, int dpi); +void blf_font_draw(FontBLF *font, char *str); + +GlyphCacheBLF *blf_glyph_cache_find(FontBLF *font, int size, int dpi); +GlyphCacheBLF *blf_glyph_cache_new(FontBLF *font); +void blf_glyph_cache_free(GlyphCacheBLF *gc); + +GlyphBLF *blf_glyph_search(GlyphCacheBLF *gc, FT_UInt idx); +GlyphBLF *blf_glyph_add(FontBLF *font, FT_UInt index, unsigned int c); + +void blf_glyph_free(GlyphBLF *g); +void blf_glyph_render(GlyphBLF *g, float x, float y); + +#endif /* WITH_FREETYPE2 */ #endif /* BLF_INTERNAL_H */ |