diff options
author | Ton Roosendaal <ton@blender.org> | 2003-10-24 02:28:49 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-10-24 02:28:49 +0400 |
commit | 904c039e3c8f9e40ece9f9cfa9ddf3dec8fe6e2c (patch) | |
tree | d35eea32681a1ae03b2f5aed3ae6276cf2ebbc0a /source/blender/ftfont | |
parent | 734637215b30a87641df83d2e33148f14a360455 (diff) |
- added ifdef INTERNATIONAL for changes in interface.c
- changed switching to smaller/larger fonts, it now does only 1 pnt size.
with standard font (11), medium is 10, small 9
Diffstat (limited to 'source/blender/ftfont')
-rw-r--r-- | source/blender/ftfont/intern/FTF_TTFont.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/ftfont/intern/FTF_TTFont.cpp b/source/blender/ftfont/intern/FTF_TTFont.cpp index ef17a610cd9..5dbcf368331 100644 --- a/source/blender/ftfont/intern/FTF_TTFont.cpp +++ b/source/blender/ftfont/intern/FTF_TTFont.cpp @@ -185,8 +185,8 @@ int FTF_TTFont::SetFont(char* str, int size) fontl = new FTGLPixmapFont(str); success = fonts->FaceSize(size-2<8?8:size-2); - success = fontm->FaceSize(size); - success = fontl->FaceSize(size+2); + success = fontm->FaceSize(size-1<8?8:size-1); + success = fontl->FaceSize(size); if(!success) return 0; success = fonts->CharMap(ft_encoding_unicode); @@ -238,8 +238,8 @@ void FTF_TTFont::SetEncoding(char* str) void FTF_TTFont::SetSize(int size) { fonts->FaceSize(size-2<8?8:size-2); - fontm->FaceSize(size); - fontl->FaceSize(size+2); + fontm->FaceSize(size-1<8?8:size-1); + fontl->FaceSize(size); font_size = size; } |