Skip to content

Conversation

@SadPencil
Copy link
Member

@SadPencil SadPencil commented Oct 22, 2025

Update by @ApocBruh

update adds some commonly used Chinese characters and improves some characters, including: Add characters:

  • U+201C -> U+201D, U+2022, U+2026, U+2014, U+2018 -> U+2019: General Punctuation

Fix some character to look more good:
"#" in light font and bold font :
Old:
Image
image
New:
Image
image

", $, ª, «, ¶, º, » in bold font:
Old:
Image
New:
Image

Update by @SadPencil

This PR replaces the main font's Chinese character range with a carefully selected set. The original range was poorly chosen, resulting in both missing necessary characters and the inclusion of overly rare characters.

This update ensures that the limited space is used to provide the most complete and relevant character set possible, without deleting any other non-Chinese characters. Note that it still contains fewer Chinese characters compared with a sprite font made just for Chinese.

The new font contains 6942 Chinese characters as follows:

  • Chinese characters defined in GB2312-90.

  • Chinese characters defined in Tong Yong Gui Fan Han Zi Biao (levels 1 & 2 only) AND (logic AND) in Unicode 1.1.

Update by @ApocBruh

Image

Top: before. Bottom: After

See CnCNet/xna-cncnet-client#860 for the issue description

@SadPencil
Copy link
Member Author

SadPencil commented Oct 22, 2025

P.S. The predecessor 48e6c96 has a known issue CnCNet/xna-cncnet-client#860 and this PR does not fix it

Edit: now fixed

@SadPencil SadPencil changed the title Update SpriteFont with revised Chinese character ranges Revise SpriteFont with Chinese ranges, cyrillic rendering, and symbols rendering Oct 23, 2025
@Metadorius Metadorius merged commit 36619cb into master Oct 23, 2025
1 check passed
@Metadorius Metadorius deleted the update-font branch October 23, 2025 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants