You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tracking is not processed correctly for Japanese #7976
bugSomething isn't workinglayoutRelated to the layout category, which is about composing, positioning, etc.textRelated to the text category, which is all about text handling, shaping, etc.
In Japanese text, three types of characters are used: kanji, hiragana, and katakana; however, when these characters are mixed, the tracking argument of the text function is not processed correctly.
Examples:
#settext(lang: "ja", font: "Noto Sans CJK JP")
#settext(tracking: 1em)
漢字漢字\ // example of only kanji
ひらがな\ // example of only hiragana
カタカナ\ // example of only katakana
漢ひら字\ // kanji-hiragana mixed
ひ漢字ら\ // kanji-hiragana mixed
漢カタ字\ // kanji-katakana mixed
カ漢字タ\ // kanji-katakana mixed
ひカタら\ // hiragana-katakana mixed
カひらタ\ // hiragana-katakana mixed
As shown in the example above, tracking is applied between characters of the same type (kanji, hiragana, or katakana), but it is not applied between characters of different types.
The problem occurs because different Japanese character types (kanji, hiragana, katakana) are being segmented into separate text runs, preventing tracking from being applied between them.
I can confirm it by breaking the run manually with *strong*:
#settext(tracking: 1em)
- 漢字漢字 // one single run
- *漢字*漢字 // two runs
So the cause is somewhat similar to #7396/#7415, but the problem is more noticeable in Japanese than in Chinese, because Japanese uses multiple scripts while Chinese mostly uses only one script.
bugSomething isn't workinglayoutRelated to the layout category, which is about composing, positioning, etc.textRelated to the text category, which is all about text handling, shaping, etc.
Activity
YDX-2147483647 commentedon Mar 14, 2026
DeepWiki analysis:
I can confirm it by breaking the run manually with
*strong*:So the cause is somewhat similar to #7396/#7415, but the problem is more noticeable in Japanese than in Chinese, because Japanese uses multiple scripts while Chinese mostly uses only one script.
YDX-2147483647 commentedon Apr 9, 2026
As for this specific example, the desired result can be achieved with
linebreak(justify: true).