Fl::set_fonts() under Mac OS: it seems that we want the full name rather than the PostScript

name for each font.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8452 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2011-02-20 08:25:26 +00:00
parent f18ac86bee
commit ea3e3dae9b
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ if(fl_mac_os_version >= 0x1050) {
for (i = 0; i < count; i++) {
CTFontDescriptorRef fdesc = (CTFontDescriptorRef)CFArrayGetValueAtIndex(arrayref, i);
CTFontRef font = CTFontCreateWithFontDescriptor(fdesc, 0., NULL);
CFStringRef cfname = CTFontCopyPostScriptName(font);
CFStringRef cfname = CTFontCopyFullName(font);
CFRelease(font);
static char fname[100];
CFStringGetCString(cfname, fname, sizeof(fname), kCFStringEncodingUTF8);