diff options
| author | Peng Guanwen <pg999w@outlook.com> | 2023-10-17 17:14:09 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-17 11:14:09 +0200 |
| commit | e4d9db83ea4b7b9a3003c754c80b30b87d6cd119 (patch) | |
| tree | a65e58179aa33adc4bf06732697a22da3dfb643b /tests | |
| parent | a59666369b946c3a8b62db363659cbfca35f0a26 (diff) | |
Automatically add spacing between CJK and Latin characters (#2334)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/layout/cjk-latin-spacing.png | bin | 0 -> 6039 bytes | |||
| -rw-r--r-- | tests/ref/layout/par-justify-cjk.png | bin | 70197 -> 69916 bytes | |||
| -rw-r--r-- | tests/ref/text/chinese.png | bin | 20759 -> 20722 bytes | |||
| -rw-r--r-- | tests/typ/layout/cjk-latin-spacing.typ | 16 |
4 files changed, 16 insertions, 0 deletions
diff --git a/tests/ref/layout/cjk-latin-spacing.png b/tests/ref/layout/cjk-latin-spacing.png Binary files differnew file mode 100644 index 00000000..bd4eed9b --- /dev/null +++ b/tests/ref/layout/cjk-latin-spacing.png diff --git a/tests/ref/layout/par-justify-cjk.png b/tests/ref/layout/par-justify-cjk.png Binary files differindex 5a147ca4..a9baf14c 100644 --- a/tests/ref/layout/par-justify-cjk.png +++ b/tests/ref/layout/par-justify-cjk.png diff --git a/tests/ref/text/chinese.png b/tests/ref/text/chinese.png Binary files differindex 4762558d..0c3ddd00 100644 --- a/tests/ref/text/chinese.png +++ b/tests/ref/text/chinese.png diff --git a/tests/typ/layout/cjk-latin-spacing.typ b/tests/typ/layout/cjk-latin-spacing.typ new file mode 100644 index 00000000..9cc94fd2 --- /dev/null +++ b/tests/typ/layout/cjk-latin-spacing.typ @@ -0,0 +1,16 @@ +// 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中文 + |
