Fonts in Tony Hawk games

Feel free to post what ever you want here.
Post Reply
Demo
VIP
Posts: 291
Joined: Thu Aug 25, 2011 5:54 am
Contact:

Fonts in Tony Hawk games

Post by Demo »

****The following piece of knowledge is well-known, but still someone may missed it. Also this works for th3-ug2, so i wasnt sure where to put this topic :)****

Font formats are totally same in thps3, thps4 and thug1 (let's say FNT1), though there are minor changes in thug2 (FNT2) and it change a lot in THAW (FNT3?).

they can be named as small.fnt, smallfnt.dat, smallfnt.xbx or anything else but they are actually same files, so all that you have to do is to copy it in fonts folder and replace the existing one.

Here you can find small library of FNT1 fonts: http://devilclanthps3.weebly.com/fonts.html

*the only difference may appear in special symbols*

FNT Tool: viewtopic.php?f=8&t=229

here are some thps4 screens using thug1 and thug2 fonts:
ImageImage
Last edited by Demo on Sun Aug 13, 2017 4:57 am, edited 2 times in total.
quazz
Global Moderator
Posts: 200
Joined: Sat Nov 13, 2010 12:04 am

Re: Fonts in Tony Hawk games

Post by quazz »

Very nice work. My opinion is fonts actually contribute a lot to the whole game style, and if we want to make higher quality mods that change the game a lot, having new fonts/gui/hud appearances can really make the whole mod more memorable and unique. :lol:

Would you consider making a TGA2FNT tool?
Demo
VIP
Posts: 291
Joined: Thu Aug 25, 2011 5:54 am
Contact:

Re: Fonts in Tony Hawk games

Post by Demo »

quazz7654 wrote:Would you consider making a TGA2FNT tool?
I had such idea, but fnt is not just an image, it's bitmap font, it contains symbols layout - positions, width, height. I tried to just copy bitmap data, but I wasn't successful, since I couldn't find any format that supports 256 color palette (32bit each) and transparency. those few home-made fonts were done in hex actually by copying image and palette from bmp, added transparency editing palette :lol: I can share FNT1 (and FNT2 for thug2) file format if anyone is interested.

Code: Select all

//font header
4 bytes - file size
(FNT2 - 4 bytes - unknown)
4 bytes - number of symbols
4 bytes - font height
4 bytes - font vertical shift

//symbols info
number of symbols *
{
  2 bytes - letter vertical shift
  2 bytes - letter code (FNT2 - 4 bytes)
}

//bitmap header
4 bytes - struct size including this (no effect, can ignore)
2 bytes - width
2 bytes - height
8 bytes always - 08 00 CC CC CC CC CC CC (08 maybe bpp)

//bitmap
{
width*height bytes
}

//palette
256 *
{
  1 byte - Red
  1 byte - Green
  1 byte - Blue
  1 byte - Alpha
}

//symbols layout info

4 bytes - number of symbols

number of symbols *
{
  2 bytes - x shift
  2 bytes - y shift
  2 bytes - length
  2 bytes - heigth
}
Last edited by Demo on Tue Jun 26, 2012 3:51 pm, edited 1 time in total.
%.gone.
Global Moderator
Posts: 392
Joined: Sun Mar 07, 2010 5:12 pm

Re: Fonts in Tony Hawk games

Post by %.gone. »

Demo wrote:(08 maybe bpp)
Bitmap images using a lookup table are typically 8 bits per pixel.
cavix64
Posts: 1
Joined: Mon Nov 14, 2016 5:42 am

Re: Fonts in Tony Hawk games

Post by cavix64 »

Hello. Is there any tool that is able to edit FNT fonts from Tony Hawk's Pro Skater 2?
FNT tool which you mention in the first post don't recognize these fonts.
If you have any valuable informations about font editing, FNT file format or something similar, please share with me. :)
Post Reply