Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 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
    Felgo 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
    Felgo 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.