🐛 Fix paragraph layout width on autowidth

This commit is contained in:
Elena Torro
2025-08-22 10:00:23 +02:00
parent c0c2c9489c
commit 46b3e174ed
7 changed files with 99 additions and 107 deletions

View File

@@ -511,7 +511,7 @@ impl RenderState {
});
let text_content = text_content.new_bounds(shape.selrect());
let mut paragraphs = text_content.get_skia_paragraphs(
let mut paragraphs = text_content.to_paragraphs(
shape.image_filter(1.).as_ref(),
shape.mask_filter(1.).as_ref(),
);
@@ -524,7 +524,7 @@ impl RenderState {
text::render(self, &shape, &mut paragraphs, None, None);
for stroke in shape.visible_strokes().rev() {
let mut stroke_paragraphs = text_content.get_skia_stroke_paragraphs(
let mut stroke_paragraphs = text_content.to_stroke_paragraphs(
stroke,
&shape.selrect(),
shape.image_filter(1.).as_ref(),