mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
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));
|
||||
}
|
||||
|
BIN
tests/ref/issue-5760-disable-cjk-latin-spacing-in-raw.png
Normal file
BIN
tests/ref/issue-5760-disable-cjk-latin-spacing-in-raw.png
Normal file
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…
x
Reference in New Issue
Block a user