Game Development Community

Need help fixing this Font problem.

by Kuju Manila · in Torque Game Engine · 10/11/2006 (5:55 pm) · 2 replies

Hi I have this issue with the font size (more like line spacing problem to me though) on Torque 1.4.2
Here are some screenshots:

http://i41.photobucket.com/albums/e260/andreivictor/problems/tge1.png
http://i41.photobucket.com/albums/e260/andreivictor/problems/tge1-1.png
http://i41.photobucket.com/albums/e260/andreivictor/problems/tge1-2.png

Versions tested on:

- Torque 1.4.2 (before Matt Fairfax's recent HEAD CVS update) DEBUG and RELEASE versions
- Torque 1.4.2 HEAD (Matt Fairfax's, downloaded Oct 11) DEBUG and RELEASE versions
- Torque 1.4.2 HEAD RELEASE binary of Gary as posted here.

I am using Ubuntu Dapper Drake now :D (Yes, I switched distro just for Torque ;P) So far everything was smooth and great compared to my SuSE 10.1 experience except for this single font problem.

I also tried various low and high resolution modes with 32 bit depth.

I also tried tweaking the dpi and other stuff in x86UNIXFont.cc. Still no go.

Also, this is how I compile:
**Assuming I've already set OS=LINUX COMPILER=GCC4 and BUILD to be DEBUG or RELEASE
torque_head$ make -clean
torque_head$ make

This is how I run the binaries:
torque_head/example$ rm -rf ~/.garagegames
torque_head/example$ rm -rf /root/.garagegames
torque_head/example$ rm -rf common/client/ui/cache
torque_head/example$ ./torqueDemo.bin (or ./torqueDemo_DEBUG.bin if DEBUG was compiled)

Anyone having the same problem as mine? Any fix?

#1
10/12/2006 (12:55 pm)
Unfortunately, I cannot help you with the font thing. The font handling on my systems are all abysmal too, but that's because I don't care and don't even have anything genuine set up for the rest of my machine, let alone torque.


I do have a couple sugggestions for ya though, for general ease-of-use stuff if you're interested:

find example -name \*.dso -or -name \*.uft -exec rm -f {} \;

That will delete all instances of *.dso and *.uft in the "example" dir.

./torqueDemo.bin -nohomedir

Run with -nohomedir and it will put everything that it was going to put into your home dir, in with everything else. Set your SCM tools to ignore *.dso and *.uft and that'll mitigate that problem before it annoys you.

Gary (-;
#2
10/12/2006 (4:33 pm)
Oh yeah, I forgot to mention... here is my ldd torqueDemo.bin
linux-gate.so.1 =>  (0xffffe000)
        libogg.so.0 => /usr/lib/libogg.so.0 (0xb7fd4000)
        libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0xb7fac000)
        libtheora.so.0 => /usr/lib/libtheora.so.0 (0xb7f72000)
        libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0xb7eea000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7ed8000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7ed5000)
        libXft.so.2 => /usr/lib/libXft.so.2 (0xb7ec3000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7dee000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7dcb000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7dc1000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7c92000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb7bac000)
        libasound.so.2 => /usr/lib/libasound.so.2 (0xb7af7000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb7aea000)
        /lib/ld-linux.so.2 (0xb7fe7000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7abb000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7a52000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7a3e000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7a36000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb7a33000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7a13000)

So, is this a minor problem that I can ignore? Assuming that I'll be making a game that uses a custom font, is it possible prevent this from happening (huge line spacing)?