Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. FontLoader doesn't function on iOS

FontLoader doesn't function on iOS

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jago
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jago
        wrote on last edited by
        #3

        Ok, thank you very much for your reply!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved