diff --git a/frontend/playwright/ui/render-wasm-specs/texts.spec.js-snapshots/Renders-a-file-with-multiple-emoji-1.png b/frontend/playwright/ui/render-wasm-specs/texts.spec.js-snapshots/Renders-a-file-with-multiple-emoji-1.png index cfa91e281b..f0cf9b0454 100644 Binary files a/frontend/playwright/ui/render-wasm-specs/texts.spec.js-snapshots/Renders-a-file-with-multiple-emoji-1.png and b/frontend/playwright/ui/render-wasm-specs/texts.spec.js-snapshots/Renders-a-file-with-multiple-emoji-1.png differ diff --git a/render-wasm/src/render/text.rs b/render-wasm/src/render/text.rs index 5ca7a4cfdf..f8ba8a0c8b 100644 --- a/render-wasm/src/render/text.rs +++ b/render-wasm/src/render/text.rs @@ -229,7 +229,7 @@ fn draw_text( paragraph.paint(canvas, xy); if paragraph_index == group_len - 1 { - group_offset_y += paragraph.height(); + group_offset_y += paragraph.ideographic_baseline(); } for line_metrics in paragraph.get_line_metrics().iter() {