Tested… So, [COLOR=‘Red’]nothing works. Only damned Tahoma instead of any custom font :tired:
Tahoma is almost everywhere, except ANSI.
What I tested (with russian characters, and doesn’t matter “custom” is on or off - but i checked both):
- I found Unicode version of DIN 1451 Mittelschrift, russian characters are included too. Tried as a non-system font - fail (ANSI - DIN 1451, Cyrillic - Tahoma).
- Install it in system - still fail.
- Ok, let’s see closer… wait, font seems to be incorrectly compiled: attributes of the font specified support only for ANSI region, whereas in fact it includes much more, as well as Cyrillic. Well, try to fix and recompile (in FontLab, in FontForge, etc). And now look at results… Fail again. ANSI - DIN 1451, Cyrillic - still Tahoma.
- Install recompiled DIN 1451 in system - nothing changed (but in a text editors I see its cyrillic).
Ok, funk you DIN 1451, let’s play with Tahoma…
- Copy tahoma.ttf from system dir to /resource/tryhoma.ttf
- Open tryhoma.ttf in a font editor. Replace all internal names from “Tahoma” to “Tryhoma”, modify one glyph of Latin characters and one of Cyrillic characters (to make it easier to see the contrast to original Tahoma), recompile the font. Check for new glyphs in various character sets of cyrillic - all is ok, i see new glyphs.
- Add tryhoma.ttf to ClientScheme.res like a new custom font - in CustomFontFiles section and in “CenterPrintText” section.
- Try - fail. ANSI - see new glyph, so Tryhoma is here; Cyrillic - don’t see new glyph, so it’s funked Tahoma from system. again.
- Install Tryhoma in system… sadness, the same fail as above.
Well, thank you Tahoma at least for containing the most of needed characters… And bug is somewhere more deeper.
P.S. Also I’ve read such articles as Authoring and Using TrueType Fonts - Valve Developer Community and Steamscheme.res file structure - there is nothing new.
(and of course i tried to use “range” option with wide region)
P.P.S. Finally, just to make sure Tahoma is this, I tried to replace the system Tahoma to my Tryhoma (after returning all internal names to “Tahoma”) - well, flawless victory New glyphs are both in Latin and Cyrillic in game.
So… funk with me Tahoma, stay with us baby :freeman: