Forums > Jitter

split a texture into lots of smaller textures (for bitmap fonts)

Jun 19 2009 | 3:56 pm

I am trying to render small non-antialiased text in openGL, that will look the same on windows and mac. I have a monospace font from which i have made a png that contains 255 characters. I have a JSUI i made that renders the string you send it (see attached) and i am trying to convert it to jitter.

My problem is dealing with textures. i am not sure if it’s best to convert each character/glyph in the png to a separate texture or to map only a specific part of a texture at a time. Either way i am not sure how to go about it.

anyone got any ideas?



Jun 19 2009 | 10:07 pm

definitely keep them as one texture.

maybe check out vade’s 3d.glyph shader?

Jun 23 2009 | 1:43 am

thanks that looks as if it should be helpful


Viewing 3 posts - 1 through 3 (of 3 total)

Forums > Jitter