Font sillyness
by Gregory "Centove" McLean · in Torque Game Engine · 04/01/2005 (5:13 pm) · 0 replies
X Windows font stuff blows huge chunks. I recently reinstalled X Windows and apparently I missed some odd font that TGE wants and does a poor job finding. So I whipped up this slightly more intelligent font match function which can be downloaded from here.
What it does is query the X Server for fonts that match the pattern and does a crude point size match for the size. Failing to get any matching fonts we go for the old reliable '6x10' font rather then assert and crash.
Apply as such:
cd
patch -p1
Though this entire chunk of code should be re-written to use XFT vs the brain damaged XLFD mess it currently uses.
What it does is query the X Server for fonts that match the pattern and does a crude point size match for the size. Failing to get any matching fonts we go for the old reliable '6x10' font rather then assert and crash.
Apply as such:
cd
patch -p1
Though this entire chunk of code should be re-written to use XFT vs the brain damaged XLFD mess it currently uses.