Blank fonts.

CU

Platinum Member
Aug 14, 2000
2,415
51
91
We are using D3DXCreateFontIndirect to create fonts for our games. Sometimes when we do a full clean which deletes the font file and then build a different game tree in source safe, when run the game D3DXCreateFontIndirect fails with out of memory. Well it turns out the font file futura.ttf is blank when you double click on it in windows, and we believe that is what is causing the problem. The only fix seems to be to reboot the computer. The file is not corrupt because it looks fine on other computers and other computers' futura.ttf file are blank on this computer. What could cause this? It seems to only happen sometimes after a clean / rebuild.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
I don't know enough about d3d and fonts to give you an answer, but it sure sounds like some record that DirectX/Windows maintains with respect to that specific file is getting borked, and not fixed until the libraries are reloaded at boot.
 

CU

Platinum Member
Aug 14, 2000
2,415
51
91
Yeah that seems to be the only think I can of think of also. Windows must keep a record that relates to that futura.ttf, and once that file has been deleted no other futura.ttf will work until a restart. But, I don't have a clue as to how to fix the problem. I have found the problem mentioned a few times during my google searches, but every time the only solution was to reboot, and no reason was given as to the cause of it.