Skip to content

Commit

Permalink
Update example in chinese-in-raw.md (#35)
Browse files Browse the repository at this point in the history
* Update example in chinese-in-raw.md

* 更新中文字体显示问题示例,添加相关链接和示例图片

* Update chinese-in-raw.md

---------

Co-authored-by: 梦飞翔 <1149761294@qq.com>
  • Loading branch information
hongjr03 and flaribbit authored Jan 24, 2025
1 parent 51d882b commit 7b8a541
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/FAQ/chinese-in-raw.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ tags: [font, chinese, raw]

然后,对于代码块,需要在源代码文件中使用类似的命令设置字体:

```typst
```typst no-render
#show raw : set text(font: ("DejaVu Sans Mono", "Noto Sans CJK SC"))
```

相关 issue:https://github.com/typst/typst/issues/5748

![示例](../images/chinese-in-raw.png)

## 相关内容

- [代码块里多了空格/代码块的对齐非常奇怪](./code-block-justify.md)
Binary file added docs/images/chinese-in-raw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7b8a541

Please sign in to comment.