Jump to content

CJK Fonts Tofu in A24b Compiled on Raspberry Pi 4B armhf Linux Debian


Rico Azzurro
 Share

Recommended Posts

I've compiled A24b from release tarball on github, and CJK fonts appear tofu as "<?><?><?>"

I thought it's font issue, so I downloaded and enabled language pack from in-game mod selection menu.

Then CJK fonts appear as broken Mosaic images. (Screenshots S2 as below)

I don't how to fix this issue and need help. Any suggestions are welcome and appreciated.

---

What I've tried:

  • Use en_US language. All good. 
  • Apply Linux Libertine for 0 A.D. . All good. Font changes as expected.
  • Install the game from debian package. Version A23. All good. CJK Localization works.
  • Install the game A23b and A24b on Win/Mac and apply related language pack mods. CJK Localization works.

 

  • Compile the game from release tarball A24b (with patch of D3710 , because of atomic issue). CJK Tofu.
  • Compile from the latest git version 663a601 . CJK Tofu. (overide mod version check by editing mod.json file, so that I can apply the language pack)
  • Install the good apt packaged A23 version and run it first. Then run my compiled A24b from binaries/system/pyrogenesis. CJK Tofu.

---

Screenshots:

S1. Latest Git, en-US, all OK, except question mark in language selection menu.

TCwG9Q3.png

S2. Git, language mod applied, both en_US and zh, CJK tofu / mosic.

4YDy5XE.png

S3. APT package A23, zh-cn language mod applied.

hwJXIDA.png

 

 

 

Edited by Rico Azzurro
  • Like 1
Link to comment
Share on other sites

Logs of latest git version 663a601 from ~/.config/0ad

 

1. Linux raspberrypi 5.10.17-v7l+ #1403 SMP Mon Feb 22 11:33:35 GMT 2021 armv7l GNU/Linux

Twister OS, debian based.

2. Compiled according to https://trac.wildfiregames.com/wiki/BuildInstructions#DebianUbuntu with patch https://code.wildfiregames.com/D3710

binaries/system/test is OK. 

3. terminal info when running the game.

pi@raspberrypi:~/Build/0ad $ binaries/system/pyrogenesis
TIMER| InitVfs: 4.08955 ms
Writing the mainlog at /home/pi/.config/0ad/logs/mainlog.html
TIMER| CONFIG_Init: 8.41264 ms
Sound: AlcInit success, using OpenAL Soft
TIMER| shutdown ConfigDB: 1.63 us
TIMER| resource modules: 16.7402 ms
TIMER TOTALS (9 clients)
-----------------------------------------------------
  tc_pool_alloc: 0 us (0x)
  tc_png_decode: 0 us (0x)
  tc_dds_transform: 0 us (0x)
  tc_transform: 0 us (0x)
  tc_plain_transform: 0 us (0x)
  tc_ShaderGLSLLink: 0 us (0x)
  tc_ShaderGLSLCompile: 0 us (0x)
  tc_ShaderValidation: 0 us (0x)
  xml_validation: 0 us (0x)
-----------------------------------------------------
TIMER| shutdown misc: 888.449 us
TIMER| InitVfs: 3.03123 ms
Writing the mainlog at /home/pi/.config/0ad/logs/mainlog.html
TIMER| CONFIG_Init: 11.0771 ms
Sound: AlcInit success, using OpenAL Soft
UserReport written to /home/pi/.config/0ad/logs/userreport_hwdetect.txt
TIMER| RunHardwareDetection: 17.3899 ms
TIMER| write_sys_info: 788.617 us
No SSE available. Slow fallback routines will be used.
TIMER| InitRenderer: 24.8886 ms
TIMER| ps_console: 12.1397 ms
TIMER| ps_lang_hotkeys: 7.83845 ms
TIMER| common/modern/setup.xml: 1.81381 ms
TIMER| common/modern/styles.xml: 482.53 us
TIMER| common/modern/sprites.xml: 4.51184 ms
TIMER| common/setup.xml: 1.07483 ms
TIMER| common/sprites.xml: 1.63077 ms
TIMER| common/styles.xml: 232.367 us
TIMER| pregame/backgrounds/: 1.56912 ms
TIMER| pregame/sprites.xml: 441.808 us
TIMER| pregame/styles.xml: 109.276 us
TIMER| pregame/mainmenu.xml: 126.062 ms
TIMER| common/global.xml: 905.726 us
TIMER| common/modern/setup.xml: 404.752 us
TIMER| common/modern/styles.xml: 365.827 us
TIMER| common/modern/sprites.xml: 4.26875 ms
TIMER| common/sprites.xml: 1.54696 ms
TIMER| splashscreen/setup.xml: 1.33465 ms
TIMER| splashscreen/splashscreen.xml: 43.9701 ms
TIMER| common/global.xml: 898.412 us
TIMER| common/modern/setup.xml: 892.356 us
TIMER| common/modern/styles.xml: 790.432 us
TIMER| common/modern/sprites.xml: 8.34677 ms
TIMER| modmod/styles.xml: 1.09994 ms
TIMER| modmod/modmod.xml: 88.0351 ms
TIMER| shutdown TexMan: 9.981 us
TIMER| shutdown Renderer: 2.84207 ms
TIMER| shutdown SDL: 135.242 ms
TIMER| shutdown UserReporter: 164.553 us
TIMER| shutdown ConfigDB: 2.667 us
TIMER| resource modules: 204.508 ms
TIMER TOTALS (9 clients)
-----------------------------------------------------
  tc_pool_alloc: 90.3 us (55x)
  tc_png_decode: 4.75957 ms (2x)
  tc_dds_transform: 29.501 us (11x)
  tc_transform: 1.06463 ms (5x)
  tc_plain_transform: 1.00778 ms (5x)
  tc_ShaderGLSLLink: 0 us (0x)
  tc_ShaderGLSLCompile: 0 us (0x)
  tc_ShaderValidation: 3.41065 ms (6x)
  xml_validation: 723.192 us (5x)
-----------------------------------------------------
TIMER| shutdown misc: 977.392 us
TIMER| InitVfs: 6.80082 ms
Writing the mainlog at /home/pi/.config/0ad/logs/mainlog.html
TIMER| CONFIG_Init: 9.07934 ms
Sound: AlcInit success, using OpenAL Soft
UserReport written to /home/pi/.config/0ad/logs/userreport_hwdetect.txt
TIMER| RunHardwareDetection: 20.9429 ms
TIMER| write_sys_info: 1.04272 ms
No SSE available. Slow fallback routines will be used.
TIMER| InitRenderer: 18.413 ms
TIMER| ps_console: 89.8221 ms
TIMER| ps_lang_hotkeys: 7.37894 ms
TIMER| common/modern/setup.xml: 1.54938 ms
TIMER| common/modern/styles.xml: 366.457 us
TIMER| common/modern/sprites.xml: 4.80802 ms
TIMER| common/setup.xml: 1.04396 ms
TIMER| common/sprites.xml: 1.65081 ms
TIMER| common/styles.xml: 338.05 us
TIMER| pregame/backgrounds/: 1.83245 ms
TIMER| pregame/sprites.xml: 451.289 us
TIMER| pregame/styles.xml: 98.499 us
TIMER| pregame/mainmenu.xml: 95.2611 ms
TIMER| common/global.xml: 1.3667 ms
TIMER| common/modern/setup.xml: 698.526 us
TIMER| common/modern/styles.xml: 676.101 us
TIMER| common/modern/sprites.xml: 7.36036 ms
TIMER| msgbox/msgbox.xml: 68.499 ms
TIMER| shutdown TexMan: 80.887 us
TIMER| shutdown Renderer: 11.8977 ms
TIMER| shutdown SDL: 95.1938 ms
TIMER| shutdown UserReporter: 213.016 us
TIMER| shutdown ConfigDB: 4.648 us
TIMER| resource modules: 346.245 ms
TIMER TOTALS (9 clients)
-----------------------------------------------------
  tc_pool_alloc: 167.875 us (95x)
  tc_png_decode: 8.5255 ms (4x)
  tc_dds_transform: 69.072 us (22x)
  tc_transform: 1.61822 ms (10x)
  tc_plain_transform: 1.49164 ms (10x)
  tc_ShaderGLSLLink: 0 us (0x)
  tc_ShaderGLSLCompile: 0 us (0x)
  tc_ShaderValidation: 5.34956 ms (11x)
  xml_validation: 1.28191 ms (9x)
-----------------------------------------------------
TIMER| shutdown misc: 755.636 us

4. files from ~/.config/0ad/ as attached.

5. I can attach verbose compile log if needed.

@Itms

user.cfg interestinglog.html mainlog.html system_info.txt userreport_hwdetect.txt

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...