Replies: 1 comment
-
for the record, I only needed an arial font which i realized did not actually need a fnt file to be loaded (a bitmap font is created on the fly for these simple fonts...) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I am trying to load a BitmapFont from a Uint8Array. short reasoning for this decision: I am in an environment when fetching from an external file via http is quite difficult, so just packaging the font as a source code variable is better
I found this link [1] for loading a sprite from a buffer, but is there a similar way perhaps to load a BitmapFont from a Uint8array? I have a .fnt file and a .png loaded as Uint8Arrays
[1] https://www.html5gamedevs.com/topic/44773-sprite-from-buffer/
thanks :)
Beta Was this translation helpful? Give feedback.
All reactions