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:
authorJoilnen Leite <joilnen.leite@gmail.com>2007-07-30 19:59:16 +0400
committerJoilnen Leite <joilnen.leite@gmail.com>2007-07-30 19:59:16 +0400
commit443a64135ea25b19cb5212c99cf85444ebb782d0 (patch)
tree75acf4f51b07f382b5bf81135b85b4c151e6db1f /source/blender/src/interface_draw.c
parentecd42c43427dd9abd8371554e623b64103587e2f (diff)
Font preview
Diffstat (limited to 'source/blender/src/interface_draw.c')
-rw-r--r--source/blender/src/interface_draw.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/interface_draw.c b/source/blender/src/interface_draw.c
index 4c6734a7be4..374cc72a59f 100644
--- a/source/blender/src/interface_draw.c
+++ b/source/blender/src/interface_draw.c
@@ -1604,7 +1604,11 @@ static void ui_draw_text_icon(uiBut *but)
ui_rasterpos_safe(x, (but->y1+but->y2- 9.0)/2.0, but->aspect);
if(but->type==IDPOIN) transopts= 0; // no translation, of course!
else transopts= (U.transopts & USER_TR_BUTTONS);
- BIF_DrawString(but->font, but->drawstr+but->ofs, transopts);
+
+ if (but->type == FTPREVIEW)
+ FTF_DrawNewFontString (but->drawstr+but->ofs, FTF_INPUT_UTF8);
+ else
+ BIF_DrawString(but->font, but->drawstr+but->ofs, transopts);
/* part text right aligned */
if(cpoin) {