Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

FontLoader doesn't function on iOS



  • Hello!

    I am using FontLoader like this:

    FontLoader { id: myFont; source: "qrc:/fonts/AdobeGothicStd-Bold.otf"}

    Then I call the font like this:

    Text {
    text: "MENU"
    font.family: myFont
    }

    I also tried with "font.family: myFont.name".

    Either way I get an Error: Unable to assign QQuickFontLoader to QString

    The font is installed on my iMac, so when I just write: font.family: "Adobe Gothic Std", then it works fine.
    But I need it to function through resource file.

    Does anyone know the solution.
    Thanks beforehand!


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Custom font are not yet implemented for iOS but it's a known missing feature you can follow it "here":https://bugreports.qt-project.org/browse/QTBUG-34490

    There's a workaround in the comment that might help you



  • Ok, thank you very much for your reply!


Log in to reply