Forums

OverviewV-Play 2 Support (Qt 5) › Custom font in Text?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15634

    Isak

    Hello i earlier worked in another sdk and had an custom fontsheet is this possible to use with an Text object? i want to use this font with my interfacetext. Its a png file with an .fnt file.

     

    If this aint possbile can you have custom fonts some other way?

     

     

    /Isak

     

     

    #15635

    Alex
    V-Play Team

    Hi Isak,

    you can load custom fonts with the FontLoader component. I am not 100% sure if your font is supported, but it’s surely worth a try :)

    Cheers,
    Alex

    #15641

    Isak

    alex.huber said:

    Hi Isak,

    you can load custom fonts with the FontLoader component. I am not 100% sure if your font is supported, but it’s surely worth a try :)

    Cheers,
    Alex

    Hello Alex,

    Thanks for the tip, i am using FontLoader now and it works great. I only installed the font on my systems and used FontLoader. Is that all i need to do or do i need to include the font when i build for it to be included?

     

    /Isak

    #15645

    Alex
    V-Play Team

    To make sure the font works everywhere, you need to include it in your project. E.g. put the file(s) of the font in your qml or assets directory and make use of the source property of the FontLoader.

    Cheers,
    Alex

Viewing 4 posts - 1 through 4 (of 4 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