aaronma37 / Deathlog

GNU General Public License v3.0
13 stars 9 forks source link

Default font doesn't support non ASCII chars. #100

Open Luke1410 opened 5 months ago

Luke1410 commented 5 months ago

The default font currently in use for most localizations (except for RU and KO) for death_alert_font is "Fonts\blei00d.TTF". It seems to me that this font doesn't support (most?) non-ASCII characters; hence, death log regularly shows names and class names with placeholder glyphs (see screenshot below). Especially when using a local with non-ASCII-chars (like the German 'umlaut's), this looks quite ugly on the UI.

I'd therefore suggest to change the default font used on the GUI (at least for localizations which regularly use non-ASCII chars at least). Tested this with the "Arial Narrow" font at it looks quite ok for me and has a seemingly pt-height compared to the blei00d-font as it seems.

Code change I tested with in strings_de.lua: image

This is how it looks with "Arial Narrow": image

This is how it appears with the 'blei00d'-font: image

Visible with the German word: 'Jäger' (meaning: hunter).

Luke1410 commented 5 months ago

Maybe 'Arial Narrow' isn't the best option to go with - apparently doesn't support the cyrillic glyphs: image image