Skip to content

Commit 4925f32

Browse files
解释covers的作用 (#133)
1 parent 8fab185 commit 4925f32

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/FAQ/lang-fonts.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ links:
77
# 中英文如何使用不同的字体?
88

99
::: tip ✅ Typst 0.13 已改进
10-
[#5305](https://github.com/typst/typst/pull/5305) 增加了 `covers` 选项,请这样设置:
10+
[#5305](https://github.com/typst/typst/pull/5305) 增加了[`covers`选项](https://typst.app/docs/reference/text/text/#parameters-font)。例如西文用 Times New Roman,中文用 SimSun(中易宋体),请这样设置:
1111

1212
```typst
1313
-- #set page(width: 18em, height: auto, margin: 1em)
@@ -17,6 +17,10 @@ links:
1717
))
1818
分别设置“中文”和English字体
1919
```
20+
21+
其中`covers: "latin-in-cjk"`的作用在于禁止中西共用标点(引号`“”`、破折号`——`等)使用 Times,从而让这些标点使用第二项 SimSun;若删除`covers: "latin-in-cjk"`,由于 Times 位列第一且有相应字形,中西共用标点会错误地使用西文字体,导致其宽度不符合中文习惯,参考以下旧方案的效果。
22+
23+
如果中西引号需要同时使用,可进一步[使用智能引号](./smartquote-font.md)
2024
:::
2125

2226
如果你使用旧版本,请使用以下旧方案。

0 commit comments

Comments
 (0)