Font preview

This commit is contained in:
2007-07-30 15:59:16 +00:00
parent ecd42c4342
commit 443a64135e
12 changed files with 71 additions and 10 deletions

View File

@@ -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) {