Author: manolo
Date: 2011-02-20 00:25:26 -0800 (Sun, 20 Feb 2011)
New Revision: 8452
Log:
Fl::set_fonts() under Mac OS: it seems that we want the full name rather than 
the PostScript
name for each font.

Modified:
   branches/branch-1.3/src/fl_set_fonts_mac.cxx

Modified: branches/branch-1.3/src/fl_set_fonts_mac.cxx
===================================================================
--- branches/branch-1.3/src/fl_set_fonts_mac.cxx        2011-02-20 08:02:50 UTC 
(rev 8451)
+++ branches/branch-1.3/src/fl_set_fonts_mac.cxx        2011-02-20 08:25:26 UTC 
(rev 8452)
@@ -87,7 +87,7 @@
   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);

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to