View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002778||The Dark Mod||GUI||public||19.06.2011 09:16||04.08.2018 20:26|
|Product Version||TDM 1.06|
|Summary||0002778: Add support for Umlauts like 'Ä' in the fonts|
|Description||The menu font (and the menu GUI) currently do not support UTF-8. However, even in ISO 8859-1, the 'ä' f.i. is rendered as □ (white suqare). Find a way to add these Umlauts to the menu font (Carleton), HUD font (Stone) and all the other fonts for readables.|
|Tags||No tags attached.|
The font in question is Carleton, and there are two ways:
* use a new font with the Umlauts, then convert it.
* Add the Umlauts to textures/fonts/carleton_4_48.dds (etc.) and add the relevant info to the fontimage_48.dat file. A tool called q3font comes in handy here, otherwise we need to hack the file manually.
|In addition to the problem with the Umlauts it seems that D3 loads fonts from a language-specific directory, and seems not to have a fallback. That means we must probably copy the fontimage_X.dat files for each language, increasing the size of the package needlessly. Luckily these files are only 20 Kbyte each, but we have dozends for all the fonts.|
|The weapon display uses the "Stone" font, so this is another candidate for getting Umlauts added.|
Hyeron did a lot of work creating a replacement Carleton font, if possible, we should retrieve this font and use it, as it would solve the issue for a lot of European languages all at once:
|French adds a non-breaking space before some punction marks. Adding a more narrow space for this would keep texts small, while still allowing it to look good to French Eyes[tm] :)|
A new font_patcher.pl utility has been checked in, it can read/dissamble font image files, patch them and write the result back. It can also be driven by commands from a textfile.
A textfie has been added which patches the most-often used characters in our Carleton 48 font. In addition, all the ISO 8859-1 and some Czech special characters in size 48 have been painted and checked in.
We now "only" need to finish the support for all characters (ideally all ISO 8859-1, but the used-by-our-current-languages subset would be fine, too).
Asfor code support, the only change is that we need to shift the Czech characters during dictionary load.
Things start to fall in place now.
A uisable charset with the most common accented characters has been defined:
The font_patcher can now handle #includes and #define, so it is much more versatile. The copy and extension of the characters has been moved to an extra file, so it is re-usable for other fonts.
The Carleton font in 48 pixel has been drawn for all special characters (plus some), and the font patch file has been extended to cover them all.
So at least the 48 pixel version is now done.
In addition, the "shift characters for Czech" has been implemented as a generic character-mapping support with external files (so no code change isnec. if the mapping ever changes).
TODO: The 24 pixel Carleton font (menu and HUD), and all the other fonts for the readables.
Both 48 and 24 pixel Carleton are done. This means the entire menu (minus the Gamma settings) and briefings work now.
Missing are all the other readable fonts, as well as "Stone", which is used for the weapons display.
The font loader code inside the doom3 engine has been fixed to also properly prepare character 0xFF - that was the bug that prevented "ÿ" in western fonts, and "я" in Russian fonts to render.
The Russian fonts still remap 0xFF to 0xB6, because it works and we don't need to fix all the Russian font files this way.
Five new characters have been added to the TDM charset: Ș Ț ș ț đ
A ISO 8859-16 to TDM map file (romanian.map) also exists. The fonts do not have these special characters yet, so they will appear as □ for now.
Even though tels is gone, this issue still needs to be completed as Romanian lacks â, ă, î.
Especially considering that TDM is standalone now.
|19.06.2011 09:16||tels||New Issue|
|19.06.2011 09:16||tels||Status||new => assigned|
|19.06.2011 09:16||tels||Assigned To||=> tels|
|19.06.2011 09:20||tels||Relationship added||child of 0002779|
|19.06.2011 19:40||tels||Note Added: 0003887|
|20.06.2011 17:10||tels||Note Added: 0003889|
|23.06.2011 11:09||tels||Note Added: 0003897|
|23.06.2011 20:23||tels||Note Added: 0003901|
|27.06.2011 19:42||tels||Note Added: 0003903|
|19.07.2011 21:16||tels||Relationship added||has duplicate 0001610|
|28.10.2011 15:36||tels||Note Added: 0004110|
|28.10.2011 15:37||tels||File Added: e_accent_3.jpg|
|30.10.2011 07:30||greebo||Target Version||TDM 1.07 =>|
|06.11.2011 22:48||tels||Note Added: 0004124|
|06.11.2011 22:52||tels||File Added: accents_24.jpg|
|06.11.2011 22:52||tels||File Added: accents_48.jpg|
|20.11.2011 16:43||tels||Note Added: 0004169|
|22.11.2011 06:52||tels||Summary||Add support for Umlauts like 'Ä' in the menu font => Add support for Umlauts like 'Ä' in the fonts|
|22.11.2011 06:52||tels||Description Updated||View Revisions|
|21.01.2012 16:31||tels||Note Added: 0004266|
|15.05.2013 15:26||tels||Assigned To||tels =>|
||Status||assigned => confirmed|
|05.10.2014 16:39||tels||Note Added: 0007059|
|06.06.2017 14:20||Anderson||Note Added: 0008886|
|04.08.2018 20:26||Anderson||Note Edited: 0008886||View Revisions|