🔧 Improve text strokes blending

This commit is contained in:
Elena Torro
2025-08-01 15:24:08 +02:00
parent 172c6ad4b8
commit 82d2889e96
4 changed files with 69 additions and 37 deletions

View File

@@ -470,18 +470,6 @@ impl RenderState {
text::render(self, &shape, &mut paragraphs, None, None);
if shape.has_visible_inner_strokes() {
// Inner strokes paints need the text fill to apply correctly their blend modes
// (e.g., SrcATop, DstOver)
text::render(
self,
&shape,
&mut paragraphs,
Some(SurfaceId::Strokes),
None,
);
}
for stroke in shape.visible_strokes().rev() {
let mut stroke_paragraphs =
text_content.get_skia_stroke_paragraphs(stroke, &shape.selrect());