diff --git a/src/Svg.Model/Services/MaskingService.cs b/src/Svg.Model/Services/MaskingService.cs index 8cc35ea77a..76f772acd2 100644 --- a/src/Svg.Model/Services/MaskingService.cs +++ b/src/Svg.Model/Services/MaskingService.cs @@ -255,7 +255,21 @@ internal static void GetClipPath(SvgVisualElement svgVisualElement, SKRect skBou case SvgText svgText: { - // TODO: Get path from SvgText. + var skPath = new SKPath(); + skPath.AddRect(skBounds); + + var pathClip = new PathClip + { + Path = skPath, + Transform = TransformsService.ToMatrix(svgText.Transforms), + Clip = new ClipPath + { + Clip = new ClipPath() + } + }; + clipPath.Clips?.Add(pathClip); + + GetSvgVisualElementClipPath(svgText, skPath.Bounds, uris, pathClip.Clip); } break; }