Hello Guest

Author Topic: Font Problems  (Read 5649 times)

bigtunacan

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 15
    • View Profile
Font Problems
« on: June 13, 2012, 07:04:05 pm »
I'm trying to create a Font. 

First I tried to create using Hiero since I work primarily on Mac.  I only get a .fnt file from Hiero which I'm not able to use as a texture.  I do not see an option to export to bmp, tga, etc... from Hiero.  So then I moved over to a PC to try creating a font from BMFont.  From BMFont I do not see a way to load my font files which are all in format otf.  Any pointers?

Dakwamine

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Font Problems
« Reply #1 on: June 14, 2012, 03:35:37 pm »
If you have an OTF, can you consider generating a TTF (or any other font format that BMFont supports) by using this tool: http://www.fontsquirrel.com/fontface/generator?
Unity 3.5.2f2
2D Toolkit Version 1.7 final + patch 2

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Font Problems
« Reply #2 on: June 14, 2012, 05:00:30 pm »
Hi,

With Hiero, when you save a .fnt file (File > Save BmFont text file), it saves pngs in the same directory automatically. You can use these directly in 2D TOolkit, as long as you observe the note below -

You should switch to glyph cache and change "Page width" and "Page height" to a larger number so it fits everything into one texture to be compatible with 2D Toolkit, but otherwise it should just work.

unikron