SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > Silent Hunter 4: Wolves of the Pacific
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 10-13-16, 09:28 AM   #1
seaplate hitman
Medic
 
Join Date: Jun 2009
Location: Blue Coral Sea
Posts: 168
Downloads: 305
Uploads: 0
Default How to set a new font?

I have a question. How to set a new type of font for the gem menu ? Or some other places such as passage.
Thx in advance.
seaplate hitman is offline   Reply With Quote
Old 10-13-16, 02:53 PM   #2
Rockin Robbins
Navy Seal
 
Join Date: Mar 2007
Location: DeLand, FL
Posts: 8,899
Downloads: 135
Uploads: 52


Default

The definitions (file names) for the fonts in SH4 are found in ~\data\menu\menu_1024_1068.ini.

Quote:
[Fonts]
Fonts=24
Font0=DATA/Menu/Fonts/FPHunt26.tga
Font1=DATA/Menu/Fonts/FPCond14.tga
Font3=DATA/Menu/Fonts/FPHunt38.tga
Font4=DATA/Menu/Fonts/FPHunt12.tga
Font5=DATA/Menu/Fonts/FPHunt15.tga
Font6=DATA/Menu/Fonts/FPSmall.tga
Font7=DATA/Menu/Fonts/FPPencil12.tga
Font10=DATA/Menu/Fonts/FPArhi24.tga
Font11=DATA/Menu/Fonts/ShellsNr.tga
Font13=DATA/Menu/Fonts/FPCond18.tga
Font14=DATA/Menu/Fonts/FPCond12.tga
Font15=DATA/Menu/Fonts/FPCond9.tga
Font16=DATA/Menu/Fonts/FPBro20.tga
Font17=DATA/Menu/Fonts/FPBro100.tga
Font18=DATA/Menu/Fonts/Agency_12.tga
Font19=DATA/Menu/Fonts/Agency_16.tga
Font20=DATA/Menu/Fonts/Agency_20.tga
Font21=DATA/Menu/Fonts/Agency_24.tga
Font22=DATA/Menu/Fonts/Agency_28.tga
Font23=DATA/Menu/Fonts/Chalk.dds
Note that these are not truetype or normal font formats, so you're stuck with loading up the files and trying to see how they work. If they could be switched from tga to dds file types they would render more quickly and use less memory.

Modding menu_1024_768.ini is a pile of trouble because it contains parameters for just about everything in the game. You would have to produce a mod for every configuration of SH4 in existence for your mod to be any use to anybody. Your best bet would be to come up with files that match the metrics and names of the existing fonts and release them so your mod just replaces the font files themselves. That would be a nightmare because then it would be difficult to tell your modded files from the originals. But many mods have that problem and we mostly can live with it.

In short, rather than use long established Windows routines and font formats, the game devs elected to reinvent the wheel, resulting in a mess.

Last edited by Rockin Robbins; 10-13-16 at 03:04 PM.
Rockin Robbins is offline   Reply With Quote
Old 10-13-16, 04:58 PM   #3
seaplate hitman
Medic
 
Join Date: Jun 2009
Location: Blue Coral Sea
Posts: 168
Downloads: 305
Uploads: 0
Default

Appreciate ur kind help
seaplate hitman is offline   Reply With Quote
Old 10-14-16, 10:09 AM   #4
Rockin Robbins
Navy Seal
 
Join Date: Mar 2007
Location: DeLand, FL
Posts: 8,899
Downloads: 135
Uploads: 52


Default

No problem. In theory it's not difficult, just byzantine. All the files pretty much explain themselves. White letters on a transparent background are a bit strange!
Rockin Robbins is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:00 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.