glTexFont
Release 6- 6/26/99

Comments? Suggestions? Contributions?
E-Mail Me:
vandals1@home.com

Home | OpenGL Tutor | Programming

Whats New?

8/0799 -- Added Linux version of glTexFont. Thanks Marc.

6/26/99 -- Release 6 of glTexFont is out today. Nothing major in this release, just some minor bug fixes and some reworking of the code. New features are listed below as usual and the documentation has been updated to reflect the new changes. Email if you have any problems with this release, it should be stable.

6/17/99 -- Release 5 of glTexFont is out! Check below as usual for the new features in this version. The Documentation has also been updated to reflect the new changes in the library. Biggest addition to this release is multiplatform support. The code should compile on a Linux box without a hitch I hope. Email me if you find any problems with this release.

6/11/99 -- Ok if you are using glTexFont or even thinking about using it read this. Make sure that you call fontLoad AFTER all of your OpenGL initialization code. If you call it before you won't see text and you will get colored boxes. I just found this out today when working with someone on getting the texFont library to work for them. It makes sense when you think about it but I never figured it would happen.

6/07/99 -- Release 4 today. See the list of changes below. Im hoping that the code base has settled down and the amount of little bugs is way down. I wrote up documentation on how to use texFont. Here is the glTexFont Library Documentation. Have fun!

6/03/99 -- Release 3 is out. Lost of changes and misc bug fixes. I REALLY suggest you get the example program that I have provided due to the lack of documentation. It shows the features that you can have and it shows what doesn't work. See Whats New In R3 below. Release 4 wont be out for a few weeks at because I am going to overhaul the code and redo lots of things. I also would like to write up some documents on how to use the library that are better than the current ones. Release 3 doesn't have everything I want incorporated but I released it to fix bugs.

5/31/99 -- Release 2 is officially out. If I did anything stpid and made it break let me know. Again check out the new features list below for what I threw into this release. Release 3 shouldn't be out for a while since I am going to try and add some more complex features too it.

5/31/99 -- Release 2 will be out sometime today or tomorrow. I fixed a bug where I was thrashing the matix stack for various matrix modes and some other misc things. Check out the new feature list below.

5/31/99 -- Sorry about the link problems all should be well today...

5/30/99 -- First release of texFont. Its really raw and simple but it does its job. More features being added and the next release should be within a few days.

Where can I get glTexFont?

glTexFont Library (R6)

glTexFont for Linux (Comes with Makefile, R6)

glTexFont Library Source (R6)

glTexFont Example Source (R6, get the sample font image below to use this)

Sample Font Image -- (This is the font from Quake3Arena, needed for example)

Sample Font Image (Gray Scale)-- (This is the same as above but its a gray scale image)

Screenshots: gltexfont00.jpg / gltexfont01.jpg / gltexfont02.jpg / gltexfont03.jpg

Documentation: glTexFont Library Documentation, R6

How can I contribute?

The whole reason why I am releasing the source to this library is so that I can get others to work on it with me. My hope is to add the ability to load server other types of image formats and use several differnet methods of redering the text to the screen. If you make any changes to the source or find any errors in it please E-Mail me and I will merge your changes into the current source tree.

Whats New in R6?
- Renamed tga error codes to font and put them in gltexfont.h
- Added define for release
- Added bold color token, \\b+ and \\b-
- Changed around token handling code
- fontLoad now returns a TGA error code if font can't load
- Fixed bug in TGA loading code

Whats New in R5?
- Linux support now works
- Fixed \\ hang bug
- Modified tga code to work with 8bit images, image treated as alpha channel now
- Fixed bug if a \\c came after \\i+ or \\i- didn't get the color
- Must call fontLoad after opengl has been setup
- Added italics support via the \\i+ and \\i- tokens, i+ turns italics on i- off
- Added GetClientRect, replaces w and h, breaks portability
- Fixed bug with variable font map sizes
- Added gradient font
- Used pointers rather than arrays for color passing

Whats New in R4?
- Made changes with the color token handling
- Fixed blending bug, wasn't restoring blend mode correctly
- Added code for mixed langue programming, C/C++
- Fixed the weird \\c bug with \n, was due to pointer position
- Library simple to use rather than complex
- Added texFont_t structure
- Added many color functions, takes array of colors now
- Added text regions, draw pos in fontDrawString ignored with text regio

Whats New In R3?
- Changed color tokens: \\c(r g b) and \\a(r g b a) are now color tokens
- Added fontColor and fontColorA
- Fixed tab and carrage return bug
- Added loadFontEx
- Fixed bug with a normal \\
- Added code to I *HOPE* let this compile on a Linux box, someone let me know if it works.

Whats New In R2?
- Shadowing of text
- Text spanning multiple lines if a \n is encountered
- Ability to have tabs(\t) contained in the text
- Per character coloring
- No more matrix bug