Works really well.
https://snowb.org/
#TTF to Bitmap Font w/JSON
12 messages ยท Page 1 of 1 (latest)
I've tried getting this to work with Phaser but it never shows the bitmap font and I don't see any errors either so not sure what is wrong
Are you exporting with xml?
Yes, I was trying BMF XML and couldn't get it to work.
Sorry for not replying back sooner, totally hadn't seen you reply
Hrmm, so, what does this do exactly?
Takes a .ttf font and converts it to a bitmap format.
Also spits out JSON data so you can load it and use it as a bitmap font.
Hrmm, i think we're like 2 levels above me.
Bitmap Font = Font that can be manipulated as a non-font Font?
It's all explained in the docs I think. With Font it renders it using canvas API as a whole text, so it's a single texture.
Bitmap font is a pre-rendered texture full of individual letters that you load. And then it renders the text by rendering each letter as an image, basically. It's much faster if the text changes a lot.
Faster? That's counterintuitive, of, in the situation only of changing a lot. Interesting. I have live debug but will have a lot of text changing regardless. Hrmm.
Well, normal Text renders fast once it's a texture, but it needs to be redrawn (slow) whenever it changes. Furthermore, if you have many texts, they are each a different texture, so you can't batch them as well, while bitmap text will always just use the one texture, so it batches.