Page 1 of 1

Creating fonts bitmap from files ...

Posted: Sun Nov 14, 2004 10:37 am
by c@c
I would like to create .bmp font files, from my system's fonts. However, the program provided with Irrlicht cannot compile under Linux, and I don't manage to find another program to convert otf fonts to bmp ...
Do you know any tip to do that ?

Posted: Sun Nov 14, 2004 7:30 pm
by jikbar
the GUI environment has a function called getTTFont() which gets an IGUIFont from a system .fnt file. im not sure if this function works, but if it does then you could just us it to get whatever font you need from the system

Posted: Sun Nov 14, 2004 7:50 pm
by c@c
What parameters does this function requires ? I didn't find it in IGUIEnvironment reference ...
Thanks for the help ;-)

Posted: Sun Nov 14, 2004 9:59 pm
by Spintz
The base Irrlicht engine does not have the ability to read in True Type fonts, someone posted some code that you could implement to do it somewhere on this forum, a search will find that.

On another note, I can't even find this font conversion tool. I decided to modify the engine to be able to read in Bitmap Font Builder bitmap fonts. The tool, at - http://www.lmnopc.com/bitmapfontbuilder/ - is a nice free tool for converting fonts. Like I said though, it takes some code modifications to the engine to be able to read in these bitmaps.