I'm setting the font face well, it works fine. I followed that tutorial
Here is my problem ,
I'm adding set font face at on start of layout; but when i testing it, it starts with default font and after x milliseconds it turns to my web font. I don't want to see that "shaking", i found that some people are changing visibility and delaying. However I cant know that delaying time. So is there any way to know if the web font changing is finished?
Second question is, i don't want to set every text manually , is there any way to set it globally to every text object.
Maybe the third question, i didn't make it to set all text objects' fonts at the loading screen. Am I have to do it at the every layouts starting?
To answer your second question, you can create a family group and place all your text objects in there, then apply set font face to the family.
You need to set the text at the start of each layout.
Develop games in your browser. Powerful, performant & highly capable.
I'm afraid you can't detect when a web font has finished loading, browsers don't yet provide this feature. Workarounds are discussed in this tutorial though.