diff options
Diffstat (limited to 'source/blender/ftfont/intern/FTF_TTFont.h')
-rw-r--r-- | source/blender/ftfont/intern/FTF_TTFont.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/ftfont/intern/FTF_TTFont.h b/source/blender/ftfont/intern/FTF_TTFont.h index 103a25a1a71..15682bd4fde 100644 --- a/source/blender/ftfont/intern/FTF_TTFont.h +++ b/source/blender/ftfont/intern/FTF_TTFont.h @@ -38,6 +38,7 @@ #define __FTF_TRUETYPE_FONT_H #include "FTGLPixmapFont.h" +#include "FTGLTextureFont.h" #include <stdio.h> //#include <iconv.h> @@ -91,6 +92,13 @@ public: void SetEncoding(char* str); + /** + * functions to communicate with blender ui rasterpos + */ + void SetPosition(float x, float y); + void SetMode(int mode); + void SetScale(float fsize); + protected: char messagepath[1024]; @@ -99,6 +107,10 @@ protected: char font_name[128]; int font_size; + int mode; // 0 = pixmap, 1 = texture + float pen_x, pen_y; //rasterpos + float fsize; + /** FTGL's */ FTFont* font; /* active */ |