Trying to draw text with a TTF font, but I keep getting missing symbols.
In the test case for me it's the first symbol used from the TTF font that repeatedly refuses to draw.
Tried latest SVNs of both 5.0 and 5.1 branches with the same results.
Am I doing something wrong here?
Linux x86-64.
I tried your code on my machine using "consolas.ttf" and works fine... If you send me "WHITRABT.TTF" and "a4_font.tga" I could try it... Otherwise try with another font to see what happens.
Te most likely explanation is that those characters don't exist in that particular font, which means you should use another font.
If you send me "WHITRABT.TTF" and "a4_font.tga"
a4_font.tga comes with Allegro.
a4_font.tga comes with Allegro.
Hohohohoh... It's true...
I can't find the WHITRABT.ttf font on internet!
I have tried different fonts with the same effect.
In the test code if I prepend the string with another symbol then that symbol won't draw at all, but the previous first symbol ('H' in this case) will then draw fine.
hm.. it sounds like an encoding problem? what IDE are you using?
try to set your encoding format as UTF-8.
I wonder if it has to do with the FBO drawing change (the font cache doesn't use FBOs, but an active FBO might prevent locking). Try putting a file called allegro5.cfg next to your executable with the following contents:
[opengl] force_opengl_version = 1.2 [opengl_disabled_extensions] GL_EXT_framebuffer_object=0
Is there any change?
Also, can you run with the debug version and attach allegro.log? Or well, the interesting info is mainly OpenGL driver and version (glxinfo | grep "version\|renderer").
The cfg file did the trick. Looks to be working perfectly now.
Log is attached.
glxinfo | grep "version\|renderer":
server glx version string: 1.4 client glx version string: 1.4 GLX version: 1.4 OpenGL renderer string: ATI Radeon HD 5700 Series OpenGL version string: 4.0.10237 Compatibility Profile Context OpenGL shading language version string: 4.00
Cheers.
That kinda sucks though.. Disabling FBOs is pretty harsh. What happens if you skip that? or bump the version of GL up to 2.1, or both?
Gl 2.1 makes no difference. Faulty without FBO disabled, right with it disabled.
Thanks for all the info! I wonder if this was introduced with the patches to delete unused FBOs. Do you have an allegro.log from a run where FBOs are enabled?
Anyway, I don't have an ATI card to reproduce it here right now but I added it to the bug tracker.
An allegro.log from a run where FBOs are enabled is attached.