mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 Fix render of text baseline (wasm)
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 217 KiB After Width: | Height: | Size: 216 KiB |
@@ -229,7 +229,7 @@ fn draw_text(
|
|||||||
paragraph.paint(canvas, xy);
|
paragraph.paint(canvas, xy);
|
||||||
|
|
||||||
if paragraph_index == group_len - 1 {
|
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() {
|
for line_metrics in paragraph.get_line_metrics().iter() {
|
||||||
|
|||||||
Reference in New Issue
Block a user