I found no information on how to use and create fonts. Of course I figured out how to create and use them, but not how this really works inside or how to achieve good/better results.
I spent 2 hrs. creating various font files, I have tons of fonts. Most of these resulted in unreadable characters or jaggy ones. So how big should I make a font in pixels and points to make it look good? Should I anti-alias the pic in Photoshop? Should I use JPG or PNG rather then BMP, would it give better results?
I abused the Techdemo to customize it to my project. It really has a lot of what I need in it, it's great work Niko
Code: Select all
gui::IGUIFont* myFont(device->getGUIEnvironment()->getFont("..\\..\\media\\fontImpact.bmp"));
core::dimension2d<int> dimPos(myFont->getDimension(L"Direct3D99.9 fps: 999 polys: 999999"));
core::rect<int> pos(10, dimPos.Height+10, dimPos.Width+10, size.Height-10);PS: What the heck is that irrlicht.dat file used for? when i leave it out i see no difference?!