We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56c33b9 commit 9d7814dCopy full SHA for 9d7814d
src/tables/colr.rs
@@ -937,15 +937,16 @@ impl<'a> Table<'a> {
937
let layers = self.layers.slice(start..end)?;
938
939
for layer in layers {
940
+ painter.outline_glyph(layer.glyph_id);
941
+ painter.push_clip();
942
if layer.palette_index == 0xFFFF {
943
// A special case.
- painter.outline_glyph(layer.glyph_id);
944
painter.paint(Paint::Solid(foreground_color));
945
} else {
946
let color = self.palettes.get(palette, layer.palette_index)?;
947
painter.paint(Paint::Solid(color));
948
}
949
+ painter.pop_clip();
950
951
952
Some(())
0 commit comments