Why text like "心角" will have strange code point?


Typst make “心角” become have a strange code point. When I use default font they can’t show correctly, now they still make show rule broke. Is this a bug? It happen on CJK, but may happen on other languages too, I don’t think it just a CJK problem.

#show "心角": "111"
#show "圆心角": "111"
#show "圆心": "111"
#set text(font: "Noto Sans Mono CJK SC")

心⻆ 圆⼼⻆ 圆周角 角度

#"⼼心⻆角".clusters().map(str.to-unicode)

Hi @LRoInT, could you maybe try to revise your post’s title to be a complete question as per the question guidelines:

Good titles are questions you would ask your friend about Typst.

We hope by adhering to this, we make the information in this forum easy to find in the future.

I would also ask that you post the code snippet as actual code instead of a screenshot, because right now others have to retype you code to be able to see what’s happening.

Thanks!

It’s not a bug, they’re simply encoded as two different characters.

⻆ is a radical, 角 is a ‘proper’ hanzi. The radical doesn’t show up in dictionaries: MDBG, Jisho.

On my computer they even look differently: In ⻆ the vertical stroke goes all the way to the bottom, while in 角 it stops at the last horizontal stroke.
Screenshot 2025-07-12 at 14-39-31 Why text like 心角 will have strange code point - Questions - Typst Forum

 

Your show rules work just fine with the proper character:

#show "心角": "111"
#show "圆心": "111"
#show "圆心角": "111"
#set text(font: "Noto Sans Mono CJK SC")

心⻆ 圆⼼⻆ 圆周角 角度

心角 圆心角 圆心

So this post continues Why is a CJK character higher than the others? and you have found the answer?
If so, you could mark your own reply as Solution, letting other people know.