mirror of https://github.com/stelzo/typst.git
Disable cjk_latin_spacing in raw by default (#5753)
This commit is contained in:
parent
a1f263862c
commit
46727878da
|
|
@ -475,6 +475,7 @@ impl ShowSet for Packed<RawElem> {
|
|||
out.set(TextElem::set_hyphenate(Hyphenate(Smart::Custom(false))));
|
||||
out.set(TextElem::set_size(TextSize(Em::new(0.8).into())));
|
||||
out.set(TextElem::set_font(FontList(vec![FontFamily::new("DejaVu Sans Mono")])));
|
||||
out.set(TextElem::set_cjk_latin_spacing(Smart::Custom(None)));
|
||||
if self.block(styles) {
|
||||
out.set(ParElem::set_justify(false));
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
|
|
@ -676,6 +676,17 @@ a b c --------------------
|
|||
`code`
|
||||
```
|
||||
|
||||
--- issue-5760-disable-cjk-latin-spacing-in-raw ---
|
||||
|
||||
```typ
|
||||
#let hi = "你好world"
|
||||
```
|
||||
|
||||
#show raw: set text(cjk-latin-spacing: auto)
|
||||
```typ
|
||||
#let hi = "你好world"
|
||||
```
|
||||
|
||||
--- raw-theme-set-to-auto ---
|
||||
```typ
|
||||
#let hi = "Hello World"
|
||||
|
|
|
|||
Loading…
Reference in New Issue