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:

        <key>ATSApplicationFontsPath</key>
        <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 <rjvber...@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@qt-project.org
> https://lists.qt-project.org/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to