Slay the Spire

Slay the Spire

73 ratings
[CTRF] Chinese Text Render Fix
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
21.582 KB
16 Oct, 2022 @ 10:56am
4 Nov, 2022 @ 9:37pm
5 Change Notes ( view )

Subscribe to download
[CTRF] Chinese Text Render Fix

Description
THIS MOD HAS BEEN MERGED INTO BASEMOD
Most of the future updates will be on Basemod, which means this mod will not update in the future.
P.S. If there's a major fix update, I will update this mod in case Basemod cannot be updated in time.

This mod is a fix to some issues of rendering Chinese texts in game when using vanilla render methods.
MAINLY FOR CHINESE USERS

Fixed Issues:
  • Fixed an issue where Chinese text colored with hex RGB had to be rendered on the same line, which resulted in that many blanks were left on the screen. Colored text now wraps in different lines. This is a historical problem left over when BaseMod had fixed the issue that Chinese text couldn't be colored using hex RGB code in vanilla game's code;
  • Fixed an issue where Chinese text colored with vanilla code (#rgbyp) had to be on the same line;
  • Fixed an issue where blanks were left in the tail if the text contains rich Chinese characters and colored strings.

Issues Not Fixed Yet:
  • When the text contains too many Chinese characters, there will be a lot blanks in the tail. One of the main reason to it is the Chinese font that vanilla game uses.
  • Cards has its own method to render the description. This mod is not fixing that now.

Source code on GitHub: https://github.com/Somdy/ChineseTextRenderFix
5 Comments
Shimo 22 Apr, 2023 @ 2:19am 
预览图里怎么把鲁巴金修复没了.jpg
狐白白 9 Nov, 2022 @ 5:17pm 
有可能能修复英文在中文模式底下没有空格的问题吗?
Chaofan 17 Oct, 2022 @ 8:55pm 
要不要考虑加到basemod里头
CaptainSnafu 16 Oct, 2022 @ 5:07pm 
谢谢