I'm working on a small project using Allegro 5, and I've encountered a problem when rendering text using a TTF font under what seems like very specific circumstances.
Put simply, if I enable mipmapping and then try to draw text using a loaded TTF font, nothing seems to actually be drawn. The problem only occurs with TTF fonts (bitmap fonts work fine) and moreover, only while using the OpenGL driver (D3D works fine, too).
I'm using Allegro 5.0.0 RC3 with Visual Studio 2008 under Windows 7 64-bit. The graphics card is a NVIDIA GeForce 9800 GTX+, driver version 258.96.
I've tried reproducing it on a different computer under Ubuntu 10.04 32-bit, where drawing works both with and without mipmapping. I'm not very familiar with linux on the whole so I'm not certain what other information would be helpful, nor do I know offhand what hardware the machine has, aside from an ATI graphics card.
Here is a small test program I made along with a screenshot of the four test results. The resources used are from the examples bundled with Allegro 5.
{"name":"Z9t9a.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/0\/20e3c6b616c8a07e430f4ff9b35e8dbc.png","w":496,"h":664,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/0\/20e3c6b616c8a07e430f4ff9b35e8dbc"}
Any help would be greatly appreciated.
I can reproduce it here under Linux/nvidia. I'll try to look at it.
EDIT: Test this patch for me.
EDIT2: New patch.
That does seem to have done the trick - drawing works fine now. 
Thanks a lot for the speedy response and for an excellent library!