mirror of
https://github.com/penpot/penpot.git
synced 2025-06-10 12:21:39 +02:00
🎉 Add text shadows (#6335)
This commit is contained in:
parent
14e8026e30
commit
c2ae58bf08
5 changed files with 93 additions and 7 deletions
|
@ -371,7 +371,12 @@ impl RenderState {
|
|||
self.surfaces.apply_mut(&[SurfaceId::Fills], |s| {
|
||||
s.canvas().concat(&matrix);
|
||||
});
|
||||
text::render(self, &shape, text_content);
|
||||
|
||||
let paragraphs = text_content.to_skia_paragraphs(&self.fonts.font_collection());
|
||||
|
||||
shadows::render_text_drop_shadows(self, &shape, ¶graphs, antialias);
|
||||
text::render(self, &shape, ¶graphs, None, None);
|
||||
shadows::render_text_inner_shadows(self, &shape, ¶graphs, antialias);
|
||||
}
|
||||
_ => {
|
||||
self.surfaces.apply_mut(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue