typst/tests/typ/layout/cjk-latin-spacing.typ
2023-11-06 21:43:15 +01:00

30 lines
478 B
Typst
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Test CJK-Latin spacing.
#set page(width: 50pt + 10pt, margin: (x: 5pt))
#set text(lang: "zh", font: "Noto Serif CJK SC", cjk-latin-spacing: auto)
#set par(justify: true)
中文中12文1中文12中文
中文中ab文a中文ab中文
#set text(cjk-latin-spacing: none)
中文中12文1中文12中文
中文中ab文a中文ab中文
---
// Issue #2538
#set text(cjk-latin-spacing: auto)
abc字
abc字#linebreak()
abc字#linebreak()
abc字\