diff options
| -rw-r--r-- | crates/typst-library/src/text/deco.rs | 2 | ||||
| -rw-r--r-- | tests/ref/text/deco.png | bin | 55102 -> 55107 bytes |
2 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-library/src/text/deco.rs b/crates/typst-library/src/text/deco.rs index 6d46305b..6a6b8477 100644 --- a/crates/typst-library/src/text/deco.rs +++ b/crates/typst-library/src/text/deco.rs @@ -403,7 +403,7 @@ pub(super) fn decorate( let min_width = 0.162 * text.size; let start = pos.x - deco.extent; - let end = pos.x + (width + 2.0 * deco.extent); + let end = pos.x + width + deco.extent; let mut push_segment = |from: Abs, to: Abs, prepend: bool| { let origin = Point::new(from, pos.y + offset); diff --git a/tests/ref/text/deco.png b/tests/ref/text/deco.png Binary files differindex 104c5a12..c850f35e 100644 --- a/tests/ref/text/deco.png +++ b/tests/ref/text/deco.png |
