Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Borghetti <bdiego@gmail.com>2009-02-17 19:56:29 +0300
committerDiego Borghetti <bdiego@gmail.com>2009-02-17 19:56:29 +0300
commit16a61743e133e505bd4666ad30d1697764171ad8 (patch)
tree5ba2783ade41a70fbe23ef08c2a2c6ae3984c7d1 /source/blender/blenfont/intern/blf_internal.h
parent9aa7e981bde5ad1b6f798ef5048cc4c373d09eb2 (diff)
Making the things compiled!!
I change the #if 0 with #if WITH_FREETYPE2, also fix a lot of typos, etc. This is the basic but now it draw text!!, I am using the "User Preference" space to test the library, nobody is working on that and the option are in the outliner now so... TODO-next: using the 4x4 mat, string size, bounding box, aspect and rotate. Notes: I update the Makefile, missing some include and other things so maybe scons, cmake and msvc also need update ?
Diffstat (limited to 'source/blender/blenfont/intern/blf_internal.h')
-rw-r--r--source/blender/blenfont/intern/blf_internal.h23
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 */