2D Toolkit Forum

2D Toolkit => Support => Topic started by: amaranth on March 16, 2012, 05:12:52 am

Title: how to create texture for font?
Post by: amaranth on March 16, 2012, 05:12:52 am
I'm very confused about how to create a font.

1. I've exported a font from BMFont. The file is called sample.fnt
2. I dragged sample.fnt into the Project Window.
3. I created an empty material and dragged sample.fnt into the Bm Font field.
4. I'm stuck! How do I create the Texture for the font?
Title: Re: how to create texture for font?
Post by: unikronsoftware on March 16, 2012, 08:31:25 am
When you exported sample.fnt, there should be a texture exported at the same directory (usually called q_00.tga/png). BMFont creates both the font file and the texture.
Title: Re: how to create texture for font?
Post by: amaranth on March 16, 2012, 05:18:56 pm
Found it! Thank you, unikron! :)

One quick note: I was using the tutorial in tk2dManual.pdf inside the project. It didn't show exact steps, but I just found your nice tutorial below. It had the steps I needed.
http://unikronsoftware.com/2dtoolkit/doc/tutorial/Preparing_a_font.html