mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 Fix visible 0 width strokes in wasm render
This commit is contained in:
@@ -464,13 +464,13 @@ impl RenderState {
|
||||
let text_content = text_content.new_bounds(shape.selrect());
|
||||
let mut paragraphs = text_content.get_skia_paragraphs();
|
||||
|
||||
if !shape.has_strokes() {
|
||||
if !shape.has_visible_strokes() {
|
||||
shadows::render_text_drop_shadows(self, &shape, &mut paragraphs, antialias);
|
||||
}
|
||||
|
||||
text::render(self, &shape, &mut paragraphs, None, None);
|
||||
|
||||
if shape.has_inner_strokes() {
|
||||
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(
|
||||
@@ -482,7 +482,7 @@ impl RenderState {
|
||||
);
|
||||
}
|
||||
|
||||
for stroke in shape.strokes().rev() {
|
||||
for stroke in shape.visible_strokes().rev() {
|
||||
let mut stroke_paragraphs =
|
||||
text_content.get_skia_stroke_paragraphs(stroke, &shape.selrect());
|
||||
shadows::render_text_drop_shadows(
|
||||
@@ -541,7 +541,7 @@ impl RenderState {
|
||||
}
|
||||
}
|
||||
|
||||
for stroke in shape.strokes().rev() {
|
||||
for stroke in shape.visible_strokes().rev() {
|
||||
shadows::render_stroke_drop_shadows(self, &shape, stroke, antialias);
|
||||
strokes::render(self, &shape, stroke, None, None, None, antialias, None);
|
||||
shadows::render_stroke_inner_shadows(self, &shape, stroke, antialias);
|
||||
|
||||
Reference in New Issue
Block a user