The International Simutrans Forum

 

Author Topic: Japanese characters do not appear in demo game  (Read 666 times)

0 Members and 1 Guest are viewing this topic.

Offline Matthew

  • Devotee
  • *
  • Posts: 632
    • Japan Railway Journal
  • Languages: EN, some ZH, DE & SQ
Japanese characters do not appear in demo game
« 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):



I guess that I need to install a BDF font for Simutrans-Extended? Do you know a good BDF font with Japanese characters, please?

Offline Phystam

  • Devotee
  • *
  • Posts: 526
  • Pak256.Ex developer
    • Pak256 wiki page
  • Languages: ja, en, eo
Re: Japanese characters do not appear in demo game
« Reply #1 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/ that supports almost all Unicode glyphs.

Offline Roboron

  • Devotee
  • *
  • Posts: 444
    • Las Gal├ícticas Aventuras de Komoyo Diga
  • Languages: ES, EN
Re: Japanese characters do not appear in demo game
« Reply #2 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).

Offline Andarix

  • *
  • Posts: 362
  • Languages: de
Re: Japanese characters do not appear in demo game
« Reply #3 on: June 01, 2021, 10:28:33 PM »

Offline Matthew

  • Devotee
  • *
  • Posts: 632
    • Japan Railway Journal
  • Languages: EN, some ZH, DE & SQ
Re: Japanese characters do not appear in demo game
« Reply #4 on: July 03, 2021, 07:45:35 AM »
You can use Unicode fonts installed in your computer, instead of the simutrans standard BDF fonts.
Or use unifont: http://unifoundry.com/unifont/ that supports almost all Unicode glyphs.

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!

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.