Added test of Unicase. Had to use the Arial that comes with Windows 10, which seems to be the only font file I have out of **everything** that comes with Unicase. :S

This commit is contained in:
Pietro Gagliardi 2017-02-16 03:05:29 -05:00
parent 4262d893bc
commit 768aba6614
1 changed files with 11 additions and 1 deletions

View File

@ -232,7 +232,17 @@ static void setupAttributedString(void)
uiAttributedStringAppendUnattributed(attrstr, ", ");
// TODO unicase
next = "UnICasE wRITInG";
start = uiAttributedStringLen(attrstr);
end = start + strlen(next);
uiAttributedStringAppendUnattributed(attrstr, next);
spec.Type = uiAttributeUnicase;
spec.Value = 1;
uiAttributedStringSetAttribute(attrstr, &spec, start, end);
uiAttributedStringAppendUnattributed(attrstr, ", ");
next = "TODO";
}
static char fontFamily[] = "Times New Roman";