diff options
| author | Ran Luo <ransixi@gmail.com> | 2024-04-02 04:22:00 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-01 20:22:00 +0000 |
| commit | 16c3af7c92de97d14f52319bd375f842ce37a949 (patch) | |
| tree | 068ee7612635b7039cbdeb13400336c28ce8434f /crates | |
| parent | 7b9faa81bf5156819f25ff2d232d63c053483665 (diff) | |
Fix compression of punctuation marks at line start of end (#3744)
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst/src/layout/inline/shaping.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/crates/typst/src/layout/inline/shaping.rs b/crates/typst/src/layout/inline/shaping.rs index c346233e..82a33f9b 100644 --- a/crates/typst/src/layout/inline/shaping.rs +++ b/crates/typst/src/layout/inline/shaping.rs @@ -189,14 +189,12 @@ impl ShapedGlyph { self.x_offset -= amount; self.x_advance -= amount; self.adjustability.shrinkability.0 -= amount; - self.adjustability.stretchability.0 += amount; } /// Shrink the width of glyph on the right side. pub fn shrink_right(&mut self, amount: Em) { self.x_advance -= amount; self.adjustability.shrinkability.1 -= amount; - self.adjustability.stretchability.1 += amount; } } |
