[Development] [OS X] next Qt 5.6.0 question : Freetype (building with -fontconfig)?

Sergio Martins sergio.martins at kdab.com
Fri Mar 18 14:15:32 CET 2016


On Friday, March 18, 2016 02:52:42 PM René J. V. Bertin wrote:
> Till Oliver Knoll wrote:
> > According to
> > 
> >   https://wiki.qt.io/New_Features_in_Qt_5.6
> > 
> > "Optional support for using FreeType on Mac OS X" is now available.
> 
> Yeah, but apparently not exactly as planned:

Where was --fontengine=freetype planed, or where did you see it would work ?

> 
> %> Assistant.app/Contents/MacOS/Assistant --fontengine=freetype
> QCocoaIntegration::Options parseOptions(const QStringList &) paramList= ()
> Unknown option: --fontengine=freetype
> 
> 
> Usage: assistant [Options]
> <snip>
> 
> %> Qt\ Creator.app/Contents/MacOS/Qt\ Creator --fontengine=freetype
> QCocoaIntegration::Options parseOptions(const QStringList &) paramList= ()
> Unknown option --fontengine=freetype
> Usage: Qt Creator [OPTION]... [FILE]...
> Options:
> <snip>
> 
> IOW: QCocoaIntegration::QCocoaIntegration() is called with an empty
> paramList (or --fontengine is not accepted into that list), and whoever
> else does the fallback option parsing doesn't support --fontengine either.

To get parameters passed to QCocoaIntegration::QCocoaIntegration(), you should 
use  -platform cocoa:fontengine=freetype, which I haven't tried, but similar 
works for me on Windows.

Also double check your Qt was built with FreeType support.


Regards,
-- 
Sérgio Martins | sergio.martins at kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel: Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - The Qt Experts



More information about the Development mailing list