mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
🐛 Fix visible 0 width strokes in wasm render
This commit is contained in:
parent
b93e96a18d
commit
e473f45048
3 changed files with 14 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue