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

Forums

OverviewFelgo 1 Support › Problem with FontLoader

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #4511

    Saims

    Hi,

    I got an issue with the FontLoader. I tried to use one global fontloader for each text in the game. This worked perfectly fine on the PC and on “slower” devices like the HTC One S, but when I tried to start it on my Nexus 4 and on a friends Galaxy Note, it chrashed. So I tried multiple fontloaders in each qml-file, a text was used…same outcome.

    Now I tried a lot of different stuff, and I finally got the app to start on my Nexus 4. The one thing that did it was to remove the fontloader in our MenuButton, which gets created about 45 times.

    So my question, is this a known issue with v-play, that an app force closes on a faster smartphone, when a fontloader is used too often and can I do anything against it?

     

    #4512

    Alex
    Felgo Team

    Hi,

    as a rule of thumb you should only use one FontLoader item for each custom font in your game. This is indeed not a known issue atm, could you probably tell us which font(s) are you trying to use and against which version of Felgo SDK you are building currently?

    Thx,

    Alex

    #4514

    Saims

    I thought so too, but when one fontloader didn’t work, I tried multiple. But cause this didn’t work either, I went back to the version, where I just got one fontloader in the main.qml. But as I said, now I use the custom font everywhere except for the 45 buttons, in order to have a version in the google play store that starts without crashing on each device.

    I’m using the most up-to-date version of v-play, i think it’s 1.3.

    And the font I am using is galascript.ttf (Gala Script) and I also tried it with chalkduster.ttf (Chalkduster). But I gotta say it seems like the font itself is not the issue here.

    #4520

    Alex
    Felgo Team

    Hi,

    just tried a plenty of custom buttons with galascript.ttf font on a Nexus 7 and unfortunately could not reproduce your crash. Is it possible to send us the apk (via email) which crashed on your devices to be able to further debug the problem?

    Thanks a lot,

    Alex

    #4521

    Saims

    Oh sry, I forgot to mention, that I also tried it on my Nexus 7 and there it worked, which disagrees with my assumption that this problem occurs with all fast devices. So I’m not sure what exactly the problem is, but as a matter of fact it doesn’t work on a Nexus 4 or a Galaxy Note 2, whereas it’s no problem on a Galaxy S or a HTC One S (and the Nexus 7).

    I’ll send an email with the apk at info@felgo.com.

     

    #4522

    Alex
    Felgo Team

    Great thx, please keep us updated if a new build actually solved your problem!

    Cheers,

    Alex

    #4524

    Saims

    Solved it…thx! 🙂

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