diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-02-01 13:32:39 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-02-01 13:32:46 +0100 |
| commit | 137d2ab317955d9b0229a9f807a3a9620b9d9f59 (patch) | |
| tree | a3b8675087c845220373075e78febfe12b91d8a5 /library/src/math | |
| parent | 2315b5d3cc04c78a551efa64504350d2ab2be487 (diff) | |
Always apply math italics corrections
Diffstat (limited to 'library/src/math')
| -rw-r--r-- | library/src/math/row.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/library/src/math/row.rs b/library/src/math/row.rs index ec2ba504..5862bfc6 100644 --- a/library/src/math/row.rs +++ b/library/src/math/row.rs @@ -60,11 +60,7 @@ impl MathRow { let mut amount = Abs::zero(); if let MathFragment::Glyph(glyph) = *prev { - if !glyph.italics_correction.is_zero() - && fragment.class() != Some(MathClass::Alphabetic) - { - amount += glyph.italics_correction; - } + amount += glyph.italics_correction; } amount += spacing(prev, &fragment, style, space, space_width).at(font_size); |
