Removed the small caps checkbox from the new font dialog. It turns out that the small caps in DirectWrite is applied to a text layout, not a part of a font like it is elsewhere. Do we even still need the custom font dialog?

This commit is contained in:
Pietro Gagliardi 2016-04-15 13:57:26 -04:00
parent 0ad767721d
commit cedb5394b4
3 changed files with 0 additions and 8 deletions

View File

@ -6,7 +6,6 @@ struct fontDialog {
HWND familyCombobox;
HWND styleCombobox;
HWND sizeCombobox;
HWND smallCapsCheckbox;
// TODO desc;
fontCollection *fc;
IDWriteFontFamily **families;
@ -137,9 +136,6 @@ static struct fontDialog *beginFontDialog(HWND hwnd, LPARAM lParam)
f->sizeCombobox = GetDlgItem(f->hwnd, rcFontSizeCombobox);
if (f->sizeCombobox == NULL)
logLastError("error getting font size combobox handle in beginFontDialog()");
f->smallCapsCheckbox = GetDlgItem(f->hwnd, rcFontSmallCapsCheckbox);
if (f->smallCapsCheckbox == NULL)
logLastError("error getting small caps checkbox handle in beginFontDialog()");
f->fc = loadFontCollection();
f->nFamilies = f->fc->fonts->GetFontFamilyCount();

View File

@ -6,4 +6,3 @@
#define rcFontFamilyCombobox 1000
#define rcFontStyleCombobox 1001
#define rcFontSizeCombobox 1002
#define rcFontSmallCapsCheckbox 1003

View File

@ -40,9 +40,6 @@ BEGIN
CBS_SIMPLE | CBS_AUTOHSCROLL | CBS_DISABLENOSCROLL |
CBS_SORT | WS_VSCROLL | WS_TABSTOP | CBS_HASSTRINGS
AUTOCHECKBOX "S&mall caps", rcFontSmallCapsCheckbox,
13, 111, 90, 10, WS_TABSTOP
GROUPBOX "Sample", -1, 114, 97, 120, 43, WS_GROUP
DEFPUSHBUTTON "OK", IDOK, 141, 215, 45, 14, WS_GROUP