Disable cjk_latin_spacing in raw by default (#5753)

This commit is contained in:
Hong Jiarong 2025-01-31 18:02:42 +08:00 committed by GitHub
parent a1f263862c
commit 46727878da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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"