Total War: PHARAOH

Total War: PHARAOH

Proton Font Fix [OBSOLETE]
Snickers Anyone  [开发者] 2023 年 10 月 12 日 上午 5:10
How To DIY
Since I can't guarantee that this mod will work with future versions, and I'm not certain that I will be able to maintain it in the future: Here's a quick How To for anyone who wants to create a .pack with this fix:


Download and set up Rusted PackFile Manager


Download link [github.com]

1. Unpack RPFM and add rpfm_ui.exe as Non-Steam game. Set compatibility to Proton 8.x or newer.

2. Launch RPFM and set your game to PHARAOH

Creating a new .pack

1. Select PackFile > New PackFile
2. Right-Click on unknown.pack and select Add > Add from PackFile
3. Navigate to your PHARAOH steam folder
default path:
/home/user/.local/share/Steam/steamapps/common/Total War PHARAOH
4. Within the data folder, open "data.pack"
This is a large file (10+gb) and it might take a while to load it

Changing the font

1. Within the "ui" folder of data.pack, double click on "fontcategories.xml". You can use the search bar on the bottom right side to find this file quicker.
2. fontcategories.xml should now have been added to your unknown.pack
3. Copy+paste its content into your favorite text editor
4. Search and replace any instance of "noto_sans_x" (where x is regular, bold, italic) with "mendl_sans_regular" or "mendl_sans_medium".
5. Copy+paste your changes back into the xml file within RPFM

Install and activate .pack

1. In RPFM select PackFile > Save PackFile As
2. Either directly save your .pack into the data folder, or save it somewhere else and copy it to TWP's folder afterwards.
As a reminder, the data folder has the following path by default:
/home/user/.local/share/Steam/steamapps/common/Total War PHARAOH
3. Launch the game and select Mods
4. Make sure to activate your mod. Note: Any mod which changes the fontcategories.xml will conflict with this .pack!

- Done -
< >
正在显示第 1 - 4 条,共 4 条留言
mpachaliev 2023 年 10 月 25 日 下午 11:01 
Hi there - could you elaborate on the steps to get a larger font?
Snickers Anyone  [开发者] 2023 年 10 月 26 日 上午 3:04 
Hey,

When you open the fontcategories.xml you should see a lots of blocks of markup which define both the font used and the text size. Here's an example:

<font name="_cooldown_timer_red" leading="0" tracking="0" colour="#DC371EFF" colour_preset=""> <shader_technique name="normal_t0" vars="0.0,0.0,0.0,0.0"/> <thresholds> <threshold font_name="tw_troy_medium" size="14" min_width="0" min_height="0"/> </thresholds> </font>

To change the font size you would simply up the value of size within the <threesholds> block.
Keep in mind that some sizes will break the way the font is rendered. Sometimes text will simply be cut off to the sides (the ressource bar on top for example will be cut off at the bottom). But I've also seen text that went from perfectly normal to small, blurry and w/o proper anti-aliasing applied to it. You could try playing around with the min_width/min_height values when that happens. I didn't investigate these and left them alone but they might be the key to resolve any issues like that.

It's best to only ever change ~5-10 sizes at a a time. Click on PackFile > Save PackFile & PackFile > Install and then restart the game and check the results. It's a tedious process, I would recommend subbing to https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3052486985 to save some time.
最后由 Snickers Anyone 编辑于; 2023 年 10 月 26 日 上午 3:05
mpachaliev 2023 年 10 月 26 日 下午 4:11 
Thank you so much for this in-depth explanation! I see that the Proton Font Fix mod you created is now obsolete - as a main Steam Deck Handheld player - I wonder if there is a way to make a standalone mode to make fonts larger. The UI Scale is locked for the Deck's native resolution.
最后由 mpachaliev 编辑于; 2023 年 10 月 26 日 下午 4:12
Snickers Anyone  [开发者] 2023 年 10 月 27 日 上午 12:02 
I don't have a Steam Deck myself or I would give it a try. Did you test the new update? The fonts are now considerably larger even at 100% scale. You could try creating a new pack as described above and then I would just change the smallest sizes by 2 (Ctrl+F size="10"). Test them -> make adjustments > Ctrl+F for size="12" and replace that and so on.
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50