#TTF to Bitmap Font w/JSON

12 messages ยท Page 1 of 1 (latest)

tardy drum
#

Works really well.
https://snowb.org/

rigid imp
#

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

rigid imp
#

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

atomic sequoia
#

Hrmm, so, what does this do exactly?

tardy drum
#

Also spits out JSON data so you can load it and use it as a bitmap font.

atomic sequoia
#

Hrmm, i think we're like 2 levels above me.
Bitmap Font = Font that can be manipulated as a non-font Font?

broken sun
#

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.

atomic sequoia
#

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.

broken sun
#

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.