diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-06-04 14:53:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-06-04 14:53:37 +0400 |
commit | d5ee6fc865f16bd3abe1ad7d2fe6aa0be43576a9 (patch) | |
tree | eeb40d67cb85fb2f8126bdeadfbb99ad63918db8 /source/blender/src/interface_draw.c | |
parent | f368b60bafcf9643afa7a51447ceca813b656abc (diff) |
interface_draw.c - when the char panel was displayed it would mess up font size for other panels.
drawview.c - removed unneeded comment (as GSR pointed out)
Diffstat (limited to 'source/blender/src/interface_draw.c')
-rw-r--r-- | source/blender/src/interface_draw.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/src/interface_draw.c b/source/blender/src/interface_draw.c index c7bcc510ef1..4c6734a7be4 100644 --- a/source/blender/src/interface_draw.c +++ b/source/blender/src/interface_draw.c @@ -1785,7 +1785,7 @@ static void ui_draw_but_CHARTAB(uiBut *but) PackedFile *pf; int result = 0; int charmax = G.charmax; - + /* <builtin> font in use. There are TTF <builtin> and non-TTF <builtin> fonts */ if(!strcmp(G.selfont->name, "<builtin>")) { @@ -1947,6 +1947,12 @@ static void ui_draw_but_CHARTAB(uiBut *but) { result = FTF_SetFont((unsigned char *) datatoc_bfont_ttf, datatoc_bfont_ttf_size, 11); } + + /* resets the font size */ + if(G.ui_international == TRUE) + { + uiSetCurFont(but->block, UI_HELV); + } } #endif // INTERNATIONAL |