🐛 Use SrcIn only when there is only one inner stroke, otherwise use erode filter

This commit is contained in:
Elena Torro
2025-08-22 09:54:15 +02:00
parent 96a91dc710
commit 0b7444e8ff
3 changed files with 28 additions and 5 deletions

View File

@@ -520,6 +520,7 @@ impl RenderState {
shadows::render_text_drop_shadows(self, &shape, &mut paragraphs, antialias);
}
let count_inner_strokes = shape.count_visible_inner_strokes();
text::render(self, &shape, &mut paragraphs, None, None);
for stroke in shape.visible_strokes().rev() {
@@ -528,6 +529,7 @@ impl RenderState {
&shape.selrect(),
shape.image_filter(1.).as_ref(),
shape.mask_filter(1.).as_ref(),
count_inner_strokes,
);
shadows::render_text_drop_shadows(
self,