Mercurial > dwindows
diff dwtest.c @ 2262:fe64be23680e
Mac: Switch to using NSFontManager fontWithFamily instead of NSFont fontWithName
fontWithName: required the PostScript font name which could be the same as
the family name, but often had no spaces, or extra text associated.
Since we need to use the shared font manager, pull it out of the font chooser.
Also "New Times Roman" worked on most platforms but required "Times New Roman"
on Mac, so hopefully this will work on other platforms too.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 27 Jan 2021 19:07:25 +0000 |
parents | cb24daa675a2 |
children | 176470d75695 |
line wrap: on
line diff
--- a/dwtest.c Wed Jan 27 09:35:38 2021 +0000 +++ b/dwtest.c Wed Jan 27 19:07:25 2021 +0000 @@ -1398,11 +1398,11 @@ dw_listbox_append(fontname, "Verdana"); dw_listbox_append(fontname, "Helvetica"); dw_listbox_append(fontname, "DejaVu Sans"); - dw_listbox_append(fontname, "New Times Roman"); - dw_listbox_append(fontname, "New Times Roman Bold"); - dw_listbox_append(fontname, "New Times Roman Italic"); - dw_listbox_append(fontname, "New Times Roman Italic Bold"); - dw_listbox_append(fontname, "New Times Roman Bold Italic"); + dw_listbox_append(fontname, "Times New Roman"); + dw_listbox_append(fontname, "Times New Roman Bold"); + dw_listbox_append(fontname, "Times New Roman Italic"); + dw_listbox_append(fontname, "Times New Roman Italic Bold"); + dw_listbox_append(fontname, "Times New Roman Bold Italic"); dw_box_pack_start(hbox, fontname, 150, -1, TRUE, FALSE, 1); dw_box_pack_start(notebookbox4, hbox, -1, -1, TRUE, FALSE, 1);