anegostudios / VintageStory-Issues

Vintage Story's public issue tracker for reporting bugs, crashes and the like
43 stars 16 forks source link

Chinese character rendering issue in the main menu #1835

Open 42yeah opened 2 years ago

42yeah commented 2 years ago

Game Version: 1.16.4 Platform: Windows Modded: No

Description

Chinese characters in the main menu are all rendered as bricks. I am guessing it is due to the fact that a second font is used when rendering those words? In-game Chinese rendering is fine.

How to reproduce

  1. "Settings" -> "Interface"
  2. Language -> Chinese
  3. Restart the game et voila!

Screenshots

Vintagestory_qevHlYvoPZ

Logs

2.4.2022 23:38:50 [Notification] Client logger started.
2.4.2022 23:38:50 [Notification] Game Version: v1.16.4 (Stable)
2.4.2022 23:38:50 [Notification] Screens:
2.4.2022 23:38:50 [Notification] 0: {X=0,Y=0,Width=1920,Height=1080}, \\.\DISPLAY1 (primary)
2.4.2022 23:38:51 [Notification] OpenAL Initialized. Available Mono/Stereo Sources: 255/1
2.4.2022 23:38:51 [Notification] Graphics Card Vendor: NVIDIA Corporation
2.4.2022 23:38:51 [Notification] Graphics Card Version: 3.3.0 NVIDIA 496.13
2.4.2022 23:38:51 [Notification] Graphics Card Renderer: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2
2.4.2022 23:38:51 [Notification] Graphics Card ShadingLanguageVersion: 3.30 NVIDIA via Cg compiler
2.4.2022 23:38:51 [Notification] Cairo Graphics Version: 1.17.3
2.4.2022 23:38:51 [Notification] OpenAL Version: 1.1 ALSOFT 1.16.0
2.4.2022 23:38:51 [Notification] C# Framework: .net Framework 4.0.30319.42000
2.4.2022 23:38:51 [Notification] OpenTK Version: 3.3.2 (A set of fast, low-level C# bindings for OpenGL, OpenGL ES and OpenAL.)
2.4.2022 23:38:51 [Notification] Start discovering assets
2.4.2022 23:38:51 [Notification] Found 18 base assets in category lang
2.4.2022 23:38:51 [Notification] Found 0 base assets in category patches
2.4.2022 23:38:51 [Notification] Found 22 base assets in category config
2.4.2022 23:38:51 [Notification] Found 0 base assets in category worldproperties
2.4.2022 23:38:51 [Notification] Found 50 base assets in category sounds
2.4.2022 23:38:51 [Notification] Found 96 base assets in category shapes
2.4.2022 23:38:51 [Notification] Found 74 base assets in category shaders
2.4.2022 23:38:51 [Notification] Found 16 base assets in category shaderincludes
2.4.2022 23:38:51 [Notification] Found 128 base assets in category textures
2.4.2022 23:38:51 [Notification] Found 4 base assets in category music
2.4.2022 23:38:51 [Notification] Found 0 base assets in category dialog
2.4.2022 23:38:51 [Notification] Found 408 base assets in total
2.4.2022 23:38:51 [Notification] Loading sounds
2.4.2022 23:38:51 [Notification] (Re-)loaded frame buffers
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass . 
2.4.2022 23:38:51 [Notification] CPU Cores: 12
2.4.2022 23:38:51 [Notification] Window was resized to 1920 1080, rebuilding framebuffers...
2.4.2022 23:38:51 [Notification] (Re-)loaded frame buffers
2.4.2022 23:38:51 [Notification] Waiting for async sound loading...
2.4.2022 23:38:51 [Notification] Sounds loaded
2.4.2022 23:38:51 [Notification] Begin loading shaders
2.4.2022 23:38:51 [Notification] Load shaders now
2.4.2022 23:38:51 [Notification] Loading shaders...
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass standard. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass particlescube. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass particlesquad. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass sky. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass nightsky. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass woittest. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass transparentcompose. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass debugdepthbuffer. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass helditem. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass chunkopaque. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass chunkliquid. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass decals. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass final. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass gui. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass blur. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass chunktransparent. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass findbright. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass chunktopsoil. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass godrays. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass autocamera. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass blockhighlights. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass wireframe. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass entityanimated. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass luma. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass blit. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass particlesquad2d. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass shadowmapentityanimated. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass shadowmapgeneric. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass texture2texture. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass celestialobject. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass guitopsoil. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass entityanimatedtransparent. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass colorgrade. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass guigear. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass ssao. 
2.4.2022 23:38:51 [Notification] Loaded Shaderprogramm for render pass bilateralblur. 
2.4.2022 23:38:51 [Notification] Cached session key is valid, validating with server
2.4.2022 23:38:53 [Notification] Server validation response: Good
2.4.2022 23:38:53 [Notification] Will search the following paths for mods:
2.4.2022 23:38:53 [Notification]     ...\Vintagestory\Mods
2.4.2022 23:38:53 [Notification]     ...\Roaming\VintagestoryData\Mods
2.4.2022 23:40:15 [Notification] Exiting game now. Server running=False. Exit reason: Main screen quit button was pressed
copygirl commented 2 years ago

Related issue: #1328 (same issue, but for Japanese characters - supposedly been fixed)

42yeah commented 2 years ago

Related issue: #1328 (same issue, but for Japanese characters - supposedly been fixed)

Yep. It's fixed after changing decorativeFontName in clientSettings.json to

"decorativeFontName": "Microsoft YaHei",

581fbcdaedc1ddc20e43410b70f33b8