mirror of https://github.com/fltk/fltk
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:
parent
f18ac86bee
commit
ea3e3dae9b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue