We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Font.Glyph.get_Outline
1 parent a392f6e commit 6f4e057Copy full SHA for 6f4e057
1 file changed
Types/Font.Glyph/get_Outline.ps1
@@ -0,0 +1,16 @@
1
+$fontFace = $this.ParentNode.'font-face'
2
+$descent = $fontFace.descent -as [double]
3
+$bbox = $fontFace.bbox -split '\s' -as [double[]]
4
+$viewbox = "0 $($bbox[-3] - $descent) $($bbox[-2]) $($bbox[-1])"
5
+@("<svg xmlns='http://www.w3.org/2000/svg' viewBox='$viewbox' width='100%' height='100%' transform='scale(1 -1)'>"
6
+
7
+"<path stroke='currentColor' d='$($this.PathData)' />"
8
+@"
9
+<circle r="5" fill="red">
10
+ <animateMotion
11
+ dur="10s"
12
+ repeatCount="indefinite"
13
+ path="$($pathData)" />
14
+ </circle>
15
+"@
16
+"</svg>") -as [xml]
0 commit comments