Hello Guest

Author Topic: how to create texture for font?  (Read 5809 times)

amaranth

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 8
  • Amaranthians rule!!!
    • View Profile
    • Amaranth Games
how to create texture for font?
« 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?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: how to create texture for font?
« Reply #1 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.

amaranth

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 8
  • Amaranthians rule!!!
    • View Profile
    • Amaranth Games
Re: how to create texture for font?
« Reply #2 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
« Last Edit: March 16, 2012, 10:15:22 pm by amaranth »