How to add a new font?
Moderator: Oberlus
How to add a new font?
For translation FreeOrion into Russian it is necessary to add a font supporting cyrillics. How it to make?
Either by using the options menu(-> ui appereance) or by opening the config.xml and changing the values for those tags:
Code: Select all
<font>Vera.ttf</font>
<font-bold>VeraBd.ttf</font-bold>
<font-size>12</font-size>
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
They should be included in the next point release, but until then, the files can be downloaded manually from here. Just get:Yoghurt wrote:I've added DejaVu to the SVN repository.
DejaVuSans-Bold.ttf
DejaVuSans-BoldOblique.ttf
DejaVuSans-Oblique.ttf
DejaVuSans.ttf
License.DejaVu
and put them in your main FreeOrion/ directory, then do as pd suggested.
Yoghurt: perhaps there should be an additional (optional?) line at the start of stringtable files to indicate what font files to use by default, so that anyone changing the stringtable doesn't then have to manually change all the font files as well?
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: How to add a new font?
For the record, DejaVu has been updated and expanded several times since the 2.1 version included presently. A lot of the Latin/Greek/Cyrillic characters have been refined and some new characters have been added.
I contributed a little to it myself some time ago - http://dejavu.sourceforge.net/wiki/index.php/User:Lars - to get the glyphs for Mac Command and Option keys included.
Might I suggest an update of the included fonts? I seem to recall they were renamed slightly at one point, but that might have been before version 2.1.....
I contributed a little to it myself some time ago - http://dejavu.sourceforge.net/wiki/index.php/User:Lars - to get the glyphs for Mac Command and Option keys included.
Might I suggest an update of the included fonts? I seem to recall they were renamed slightly at one point, but that might have been before version 2.1.....
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: How to add a new font?
I've updated the DejaVu fonts and license in SVN to vesrion 2.27.
Re: How to add a new font?
Guys, could you please point me is cyrillic supported now? I'm using 0.3.10 release with DejaVu fonts. Cyrillic is displayed incorrectly both for UTF-8 and ANSI encodings.
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: How to add a new font?
The SVN version, and hopefully-soon-to-be-released v0.3.11 do support cyrillic text. Use UTF-8 encoding.
- Attachments
-
- FreeOrion main splash menu with Russian stringable, illustrating cyrllic characters
- FreeOrion_Rus_Stringtable.png (497.35 KiB) Viewed 3374 times
Re: How to add a new font?
O geez, now I can't read it. Is there a way to switch it back?
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: How to add a new font?
Your local community college probably has language courses...