Skip to content

Commit

Permalink
Fix glyph overlap clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhozak authored and tronical committed Nov 12, 2024
1 parent 553a8e9 commit 64aaefb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ impl GlyphAtlas {
},
);
} else {
canvas.fill_path_internal(path, &PaintFlavor::Color(mask_color), false, FillRule::EvenOdd);
canvas.fill_path_internal(path, &PaintFlavor::Color(mask_color), false, FillRule::NonZero);
}

canvas.restore();
Expand Down Expand Up @@ -1297,7 +1297,7 @@ pub fn render_direct<T: Renderer>(
},
);
} else {
canvas.fill_path_internal(path.borrow(), paint_flavor, anti_alias, FillRule::EvenOdd);
canvas.fill_path_internal(path.borrow(), paint_flavor, anti_alias, FillRule::NonZero);
}
}
#[cfg(feature = "image-loading")]
Expand Down

0 comments on commit 64aaefb

Please sign in to comment.