Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › Felgo App Font Error?

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #18112

    Niyazi

    Hi,

    I create a small app. I set the fontawsome.ttf fonts and another font (Amiko-Regular.ttf).

    AppButton looks normal but all the AppText font become italic and some kind of handwriting fonts.

     

    All the text I use id: normalFont; and just 3 text has the fontawsome.ttf fonts. Unfortunetly all the fonts off the mark 🙁

    Any help please?

     

     

        FontLoader {
            id: awesomeFont;
            source: "../fonts/fontawesome-webfont.ttf"
        }
    
        FontLoader {
            id: normalFont;
            source: "../fonts/Amiko-Regular.ttf"
        }
    

     

    #18113

    Alex
    Felgo Team

    Does this also happen with normal deployment or only with Felgo Live?

    Cheers,
    Alex

    #18114

    Niyazi

    No it doesnt. Felgo Live shows fonts as normal

     

    #18115

    Niyazi

    Sorry Alex, I get the issue only for the normal deploymnet of the apk file to my mobile.

    #18116

    Alex
    Felgo Team

    They are most likely not correctly deployed. Is your fonts folder inside the “assets” or “qml” folder? Those 2 folders are deployed by default. If not, please move the folder into there, this is easier than adding a new folder to the deployment folders or resources.

    Felgo Live does not care about this, as it transfers your whole workspace (with some exceptions to save traffic), but normal deployment does.

    Cheers,
    Alex

    #18117

    Niyazi

    Thanks Alex. It was outside assets and qml folder. I will try to remember.

    #18122

    Niyazi

    Hi Alex,

    I change my fonts folder. In apk file that I download to my mobile doesn’t show the fontawesome-webfont correctly. And when I use Felgo Live I get these errors.

     

    /Users/ntms/Library/Application Support/Felgo Live Client/qml/MainTemplate.qml:80: Unable to assign QQuickFontLoader to QString
    /Users/ntms/Library/Application Support/Felgo Live Client/qml/MainTemplate.qml:99: Unable to assign QQuickFontLoader to QString
    /Users/ntms/Library/Application Support/Felgo Live Client/qml/MainTemplate.qml:119: Unable to assign QQuickFontLoader to QString

     

    This is the where I use the fonts.

            AppText {
                id: atmLabel
                font.family: normalFont
                font.pixelSize: sp(11)
                font.bold: true
                anchors.left: parent.left
                anchors.leftMargin: dp(10)
                color: "#ffffff"
                text: "ATM"
    
                MouseArea {
                    anchors.fill: atmLabel
                    onClicked: {
                        // On event goes here
                    }
                }
            } // atm
    

     

     

     

    This is the where assign the FontLoader

        FontLoader {
            id: awesomeFont;
            source: "../assets/fonts/fontawesome-webfont.ttf"
        }
    
        FontLoader {
            id: normalFont;
            source: "../assets/fonts/Lato-Light.ttf"
        }

     

    #18131

    Niyazi
Viewing 8 posts - 1 through 8 (of 8 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded