The International Simutrans Forum

Simutrans Extended => Pak256.Ex => Simutrans-Extended paksets => Pak256.Ex bug reports => Topic started by: Matthew on June 01, 2021, 04:00:25 PM

Title: Japanese characters do not appear in demo game
Post by: Matthew on June 01, 2021, 04:00:25 PM
The demo game includes vehicles with Japanese characters. I guess they are kanji.

But they do not appear on my system (Ubuntu, no Japanese IME):

(https://i.imgur.com/waY0fVT.jpg)

I guess that I need to install a BDF font for Simutrans-Extended? Do you know a good BDF font with Japanese characters, please?
Title: Re: Japanese characters do not appear in demo game
Post by: Phystam on June 01, 2021, 05:03:44 PM
You can use Unicode fonts installed in your computer, instead of the simutrans standard BDF fonts.
Or use unifont: http://unifoundry.com/unifont/ (http://unifoundry.com/unifont/) that supports almost all Unicode glyphs.
Title: Re: Japanese characters do not appear in demo game
Post by: Roboron on June 01, 2021, 08:42:58 PM
You can use Unicode .ttf fonts installed on your system if you have compiled Simutrans Extended with FreeType. Take in mind, that if you compile Simutrans-Extended using cmake, that this option is off by default (I don't know why).
Title: Re: Japanese characters do not appear in demo game
Post by: Andarix on June 01, 2021, 10:28:33 PM
wenquanyi_9pt.bdf (https://sourceforge.net/p/simutrans/code/HEAD/tree/tools/translator/data/wenquanyi_9pt.bdf) ~3,3 MByte
Title: Re: Japanese characters do not appear in demo game
Post by: Matthew on July 03, 2021, 07:45:35 AM
Quote from: Phystam on June 01, 2021, 05:03:44 PM
You can use Unicode fonts installed in your computer, instead of the simutrans standard BDF fonts.
Or use unifont: http://unifoundry.com/unifont/ (http://unifoundry.com/unifont/) that supports almost all Unicode glyphs.

Quote from: Roboron on June 01, 2021, 08:42:58 PM
You can use Unicode .ttf fonts installed on your system if you have compiled Simutrans Extended with FreeType. Take in mind, that if you compile Simutrans-Extended using cmake, that this option is off by default (I don't know why).

Thank you; I didn't realize that OTF/TTF fonts were now usable in Extended. Simutrans finds fonts in ~./fonts but not /usr/share/fonts (where Ubuntu installs system fonts). I can use symlinks to get around this though.

I will now be able to play historical games with historical fonts!

Quote from: Andarix on June 01, 2021, 10:28:33 PM
wenquanyi_9pt.bdf (https://sourceforge.net/p/simutrans/code/HEAD/tree/tools/translator/data/wenquanyi_9pt.bdf) ~3,3 MByte

Thank you! This actually looks much better than OTF/TTF fonts for CJK text. It seems bitmap fonts still have a niche.