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

Hamish Moffatt hamish at risingsoftware.com
Mon May 27 01:33:59 CEST 2019


On 24/5/19 6:35 pm, René J.V. Bertin 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):


I remember that adding fonts from resources didn't work for us in 5.8 on 
Mac. We had to ship the fonts in our bundle instead. I didn't check if 
it was fixed in a later version.


Hamish




More information about the Interest mailing list