diff options
| author | Peng Guanwen <pg999w@outlook.com> | 2023-05-15 14:57:17 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-15 08:57:17 +0200 |
| commit | 659f27bf6a183876ed8f4608144f4ba7740a5eb3 (patch) | |
| tree | d9a4c3d7a2e21491fd8143d8965dc45e8363d8f5 /library | |
| parent | cb33b96426216bbf5cf978c4da1878a6ab548b04 (diff) | |
Do not hang CJK punctuation (#1211)
Diffstat (limited to 'library')
| -rw-r--r-- | library/src/layout/par.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/src/layout/par.rs b/library/src/layout/par.rs index 96d45f2f..f87b23d8 100644 --- a/library/src/layout/par.rs +++ b/library/src/layout/par.rs @@ -1473,9 +1473,8 @@ fn overhang(c: char) -> f64 { '.' | ',' => 0.8, ':' | ';' => 0.3, - // Arabic and Ideographic + // Arabic '\u{60C}' | '\u{6D4}' => 0.4, - '\u{3001}' | '\u{3002}' => 1.0, _ => 0.0, } |
