[Qt-interest] Some fonts don't work on Mac OS X

Andre Somers andre at familiesomers.nl
Sun Sep 12 13:40:28 CEST 2010


  Op 9-9-2010 18:21, James Larcombe schreef:
> Try this:
>
> In the QCoreTextFontEngineMulti constructor (qfontengine_mac.mm),
> replace
>
>      QCFString name;
>      ATSFontGetName(atsFontRef, kATSOptionFlagsDefault,&name);
>
> with
>
>      QCFString name = fontDef.family;
>
> This avoids using the duff ATSFontRef passed in and fixes the problem
> for me. The QFontDef's family name is set in QFontDatabase::load using
> the ATSFontFamilyRef, which seems to be valid.
>
> Of course, this does nothing for the Carbon build, so if you care about
> that you'll need to dig further.
>
> Hope this helps
> James
>
>
All the above seems to be very useful info to attach to the bugreport!

André



More information about the Qt-interest-old mailing list