diff --git a/src/swash.rs b/src/swash.rs index 5f98819..416c0bf 100644 --- a/src/swash.rs +++ b/src/swash.rs @@ -84,9 +84,16 @@ fn swash_outline_commands( .build(); // Scale the outline - let outline = scaler + let mut outline = scaler .scale_outline(cache_key.glyph_id) .or_else(|| scaler.scale_color_outline(cache_key.glyph_id))?; + + if cache_key.flags.contains(CacheKeyFlags::FAKE_ITALIC) { + outline.transform(&Transform::skew( + Angle::from_degrees(14.0), + Angle::from_degrees(0.0), + )); + } // Get the path information of the outline let path = outline.path();