Changing the server font ?


(dwe_flame) #1

well i was trying to change the server font trough a PK3.

so i tryed the following:

  1. downloaded the Q3Font tool
  2. created some font files trough this tool, so i have a new tga and dat file

so far all seems to work correct, i see no errors accure

  1. now i RE-name the new files (fontImage_0_16.tga -> courbd_0_21.tga) and (fontImage_16.dat -> courbd_21.dat)

  2. i Edit the .dat file with Notepad ++ and do a “search and replace” for fontImage_0_16.tga -> courbd_0_21.tga

  3. i wrap it into a pk3 in the right way.

  4. i upload it to server

result => blank chat area’s and stuff. so font seems not to work.

so i guess i can just start editing the TGA but that would be a *****load of work.
anyone got ideas on what to do and how to make this work ?
or maybe know a server that changed font and could sent me that pk3 file from that server ?


(fumanchu) #2

Actually to just replace a font you dont need to edit the .dat file.

Just make like you did:

so i tryed the following:

  1. downloaded the Q3Font tool
  2. created some font files trough this tool, so i have a new tga and dat file

so far all seems to work correct, i see no errors accure

And now rename the .dat file with the name of the font you want to replace,
put the .dat file and the .tga inside the fonts folder within the pk3
and upload.

You dont need to remane the .tga or edit the .dat (just rename).

This is the easy way though.


(dwe_flame) #3

:eek:
why on earth did i not came up with that :o
that was a too obvious thing to do :rolleyes:


(fusion) #4

[QUOTE=fumanchu;229760]Actually to just replace a font you dont need to edit the .dat file.

Just make like you did:

And now rename the .dat file with the name of the font you want to replace,
put the .dat file and the .tga inside the fonts folder within the pk3
and upload.

You dont need to remane the .tga or edit the .dat (just rename).

This is the easy way though.[/QUOTE]
It is really easy, I coped with it, thanks for a good tip.


(YourFather_CZ) #5

Using Q3 Font Tool, you can also decompile .dat files supplied with font images (.tga files).
This is useful if you are extending original fonts.

(this reminds story which happened few years ago - I have spent time by manual decompiling .dat files… after sucess, I have discovered Q3 Font Tool :-))) )

For compiling non-cutom Q3 Font only, there is GUI version of Q3 Font Tool.
Here is homepage of Q3 Font GUI + download.

Another download mirrors:
Q3 Font Tool (contains useful readme)
Q3 Font GUI version


(YourFather_CZ) #6

why on earth did i not came up with that :o
that was a too obvious thing to do :rolleyes:[/QUOTE]
Anyway, .dat files supplied with Q3 fonts are BINARY files. This mean you cannot edit them using text editor directly (otherwise your data stored in .dat file will be broken).
You have to use some kind of HEX editor.