Made the small caps stuff ineffective on page 9. We'll be removing it from FontDescriptor shortly.

This commit is contained in:
Pietro Gagliardi 2016-04-15 14:09:14 -04:00
parent cedb5394b4
commit 9b27e12cfc
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,6 @@ static void handlerDraw(uiAreaHandler *a, uiArea *area, uiAreaDrawParams *dp)
desc.Size = entryDouble(textSize);
desc.Weight = uiComboboxSelected(textWeight);
desc.Italic = uiComboboxSelected(textItalic);
desc.SmallCaps = uiCheckboxChecked(textSmallCaps);
desc.Stretch = uiComboboxSelected(textStretch);
font = uiDrawLoadClosestFont(&desc);
uiFreeText(family);
@ -111,6 +110,8 @@ static void handlerDraw(uiAreaHandler *a, uiArea *area, uiAreaDrawParams *dp)
s = uiEntryText(textString);
layout = uiDrawNewTextLayout(s, font, width);
uiFreeText(s);
if (uiCheckboxChecked(textSmallCaps))
; // TODO
ypos = 10;
uiDrawText(dp->Context, 10, ypos, layout);
// TODO make these optional?