Need Help (artist?) For My Gles 2d Library


Cpasjuste

Member
Joined
Apr 20, 2007
Messages
266
Hello, i would need some help for the project i'm currently working on. I'v writted a font rendering engine for my library, which use some textured fonts, based on the nehe openGL tutorials ( http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=17 ).

The problem is : i can't find any fonts image in this format on the net. The format is 256*256 for the whole font image, and 16*16 per char. Could someone do me some cool fonts, or point me to a place where i could find some ?

Here is an exemple of the font file i need (the format could be bmp, png etc, rgba ) :

font.gif


Sorry for my crappy english, and thanks in advance !
 
I wouldn't recommend the nehe format because its hard to process. Its by far easier to use a normal ASCII map because you almost never need 2 fonts anyway..
//Edit: Maybe not by fair, but its more logic and you can strip out those chars you don't need on your own, possibly getting a single texture for 3 or more fonts (which is, as I said before, almost never necessary).

If you use ASCII, the texture coordinates [0.0, 1.0] should be (top of my head):
U: 1.0f / 16.0f * (Letter & 0x0F)
V: 1.0f / 16.0f * (Letter & 0xF0)

This is my favorite tool for generating font-textures: http://www.lmnopc.com/bitmapfontbuilder/
 
You may be right. In fact it's an ascii map until the 128 char, dunno what the crap happen after. It already took me some time to port the nehe code to SDL1.3 (used in my library) so i may use that for now then optimise that in the future.
 
Back
Top