diff options
author | Rob Haarsma <phaseIV@zonnet.nl> | 2005-01-19 16:53:43 +0300 |
---|---|---|
committer | Rob Haarsma <phaseIV@zonnet.nl> | 2005-01-19 16:53:43 +0300 |
commit | 9fddd2bdec4f879a44304118e2f44929c2755483 (patch) | |
tree | c21b1edc62e879a28d8d5ded054a00a899e4dbc3 /source/blender/ftfont/intern/FTF_Api.cpp | |
parent | 731c69d6ed04628d93ae313397cb5c8f85078ea0 (diff) |
Added experimental option to use GL textured interface fonts.
Set preferred method in userprefs->language & font.
Kinda requested by Kaito, i'm sure he regrets after seeing
my code changes.
This commit includes a patch provided by Jacques Baurain,
which seemed nescessary to handle font sizing properly.
Thank you !
Diffstat (limited to 'source/blender/ftfont/intern/FTF_Api.cpp')
-rw-r--r-- | source/blender/ftfont/intern/FTF_Api.cpp | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/source/blender/ftfont/intern/FTF_Api.cpp b/source/blender/ftfont/intern/FTF_Api.cpp index 46638d9f4eb..036e13a7e6e 100644 --- a/source/blender/ftfont/intern/FTF_Api.cpp +++ b/source/blender/ftfont/intern/FTF_Api.cpp @@ -155,11 +155,22 @@ FTF_EXPORT void FTF_SetLanguage(char* str) _FTF_GetFont()->SetLanguage(str); } -/** - * added by phase - * - */ FTF_EXPORT void FTF_SetEncoding(char* str) { _FTF_GetFont()->SetEncoding(str); } + +FTF_EXPORT void FTF_SetPosition(float x, float y) +{ + _FTF_GetFont()->SetPosition(x, y); +} + +FTF_EXPORT void FTF_SetMode(int mode) +{ + _FTF_GetFont()->SetMode(mode); +} + +FTF_EXPORT void FTF_SetScale(float fsize) +{ + _FTF_GetFont()->SetScale(fsize); +} |