[Interest] known issues with QFontDatabase::addApplicationFontFromData in Qt/Mac 5.9?

Jim Prouty jim at wavemetrics.com
Wed May 29 00:27:54 CEST 2019

Perhaps you can simply use your Info.plist to point to a folder of fonts, and not use Qt to add fonts to the database:

	<string>../../../Fonts Folder</string>

Or, if you want to load them from your bundle, put them in (for example) Your.app/Contents/Resources/Fonts, the value is only the bit after Contents/Resources, namely "Fonts".

> On May 24, 2019, at 1:35 AM, René J.V. Bertin <rjvbertin at gmail.com> wrote:
> Hi,
> Is there a known issue when using QFDb::addApplicationFontFromData() or QFDb::addApplicationFont() with an embedded resource path in Qt 5.9 on Mac? I'm getting a crash; as far as I can tell the CTFontRef creation from the font data succeeds but the CoreText call to fetch the font description crashes, comparable to what happens here except that I can reproduce it by loading font data through the UI):
> https://github.com/mooltipass/moolticute/issues/157
> Thanks,
> R.
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest

More information about the Interest mailing list