Font glyph issue

Post Reply
Nicals
Posts: 27
Joined: Fri Jun 19, 2020 1:01 pm

Font glyph issue

Post by Nicals »

I managed to get the game running smoothly on linux (latest wine + corefont + gdiplus) but noticed a glyph issue on the Winter and Split/Merge buttons.
They render as a box with a cross inside as shown in the following screenshot.

Image

Is this issue also present on Windows installs?

If not, it might be because the game is using one of the fonts shipped with Windows that I don't have right now.
Does anyone know which font those glyphs are from?

I understand that Linux is not officially supported, I'm trying to get info to fix it myself.
User avatar
Vic
Posts: 10090
Joined: Mon May 17, 2004 2:17 pm
Contact:

Re: Font glyph issue

Post by Vic »

Archivo Narrow is the font used for the Snow flake glyph and should be read from.

But what confuses me is the game ships with its own "fonts/" directory and the game should load the fonts from there. Now what might be happening is that if a certain font doesn't have a certain glyph windows gdi+ fallsback on another font... and that happens differently on linux.

best wishes,
Vic
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
Nicals
Posts: 27
Joined: Fri Jun 19, 2020 1:01 pm

Re: Font glyph issue

Post by Nicals »

Thanks, that's helpful.

I managed to track down the issue. The shipped Archivo Narrow font that seems to be in ARIALN.TTF and ARIALNB.TTF doesn't seems to have the glyph embedded.
I understand that a missing glyph is handled by gdi+ that load it from one of the system fonts.
On Linux wine (gdi+ / corefonts), the fallback fonts are either completly missing, just missing the requested glyphs or not properly handled.

I've launched an LLM to find the glyphs that are missing in the game and got the following:

Code: Select all

┌──────┬────────┬────────────────────────────────────────────────────────────────────────────────────────────┐
│ Char │  Code  │                                     Where in the game                                      │
├──────┼────────┼────────────────────────────────────────────────────────────────────────────────────────────┤
│ ❄    │ U+2744 │ Unit info panel (cold level next to winter preparedness %), and probably snow on map hexes │
├──────┼────────┼────────────────────────────────────────────────────────────────────────────────────────────┤
│ ◰    │ U+25F0 │ TROOPS tab: merged-mode button and suffix on merged troop rows                             │
├──────┼────────┼────────────────────────────────────────────────────────────────────────────────────────────┤
│ ◻    │ U+25FB │ TROOPS tab: split-mode button (shown as "◻◻")                                              │
├──────┼────────┼────────────────────────────────────────────────────────────────────────────────────────────┤
│ ↪    │ U+21AA │ Combat result window: unit gets free movement into the target hex                          │
└──────┴────────┴────────────────────────────────────────────────────────────────────────────────────────────┘
I patch all fonts of the game (excluding 04B_03B_.TTF and small5.ttf) to include the missing glyph that I took from another font and it did the trick.
User avatar
Vic
Posts: 10090
Joined: Mon May 17, 2004 2:17 pm
Contact:

Re: Font glyph issue

Post by Vic »

impressive. if you would like to share with other linux users migh be appreciated by them. i always notice not everybody manages to do the kind of complex stuff that you do. if you post in the main forums, i can make that topic sticky.
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
Nicals
Posts: 27
Joined: Fri Jun 19, 2020 1:01 pm

Re: Font glyph issue

Post by Nicals »

Good idea. I added a post. in the general channel.
User avatar
Vic
Posts: 10090
Joined: Mon May 17, 2004 2:17 pm
Contact:

Re: Font glyph issue

Post by Vic »

great! I made it sticky! big thanks for helping out my game with the linux crowd.
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
Post Reply

Return to “Tech Support”