You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we load 2 bitmap fonts (.fnt), and also generate about ~10 different bitmap font styles for our game during preload, but dynamically based on different languages.
Is there any way to cache the result of BitmapFont.from(...)?
for(constfontofmyBitmapFonts.values()){const[fontName,generatedTextStyle,generatedBitmapFontOptions]=loadFontConfig(font);constmyFont=PIXI.BitmapFont.from(fontName,generatedTextStyle,generatedBitmapFontOptions);// cache this texture somewhere for subsequent page visits}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
Currently we load 2 bitmap fonts (.fnt), and also generate about ~10 different bitmap font styles for our game during preload, but dynamically based on different languages.
Is there any way to cache the result of
BitmapFont.from(...)
?Beta Was this translation helpful? Give feedback.
All reactions