mirror of
https://github.com/penpot/penpot.git
synced 2025-06-26 23:26:59 +02:00
🔧 Fix text parsing and transformation
This commit is contained in:
parent
443cabe94e
commit
88e77e3218
2 changed files with 26 additions and 7 deletions
|
@ -416,9 +416,17 @@ impl RenderState {
|
|||
}
|
||||
|
||||
Type::Text(text_content) => {
|
||||
self.surfaces.apply_mut(&[SurfaceId::Fills], |s| {
|
||||
s.canvas().concat(&matrix);
|
||||
});
|
||||
self.surfaces.apply_mut(
|
||||
&[
|
||||
SurfaceId::Fills,
|
||||
SurfaceId::Strokes,
|
||||
SurfaceId::DropShadows,
|
||||
SurfaceId::InnerShadows,
|
||||
],
|
||||
|s| {
|
||||
s.canvas().concat(&matrix);
|
||||
},
|
||||
);
|
||||
|
||||
let text_content = text_content.new_bounds(shape.selrect());
|
||||
let paragraphs = text_content.get_skia_paragraphs(self.fonts.font_collection());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue