Forums

OverviewV-Play 2 Support (Qt 5) › V-Play 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
    V-Play Team

    Does this also happen with normal deployment or only with V-Play Live?

    Cheers,
    Alex

    #18114

    Niyazi

    No it doesnt. V-Play 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
    V-Play 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.

    V-Play 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 V-Play Live I get these errors.

     

    /Users/ntms/Library/Application Support/V-Play Live Client/qml/MainTemplate.qml:80: Unable to assign QQuickFontLoader to QString
    /Users/ntms/Library/Application Support/V-Play Live Client/qml/MainTemplate.qml:99: Unable to assign QQuickFontLoader to QString
    /Users/ntms/Library/Application Support/V-Play 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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support