Skip to content

Commit 4165750

Browse files
feat: Font.Glyph.get_Motion/Outline ( Fixes #20, Fixes #21 )
Using transparent fill
1 parent 1c69fca commit 4165750

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Types/Font.Glyph/get_Motion.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $viewbox = "0 $($bbox[-3] - $descent) $($bbox[-2]) $($bbox[-1])"
55
$PathData = $this.PathData
66
@(
77
"<svg xmlns='http://www.w3.org/2000/svg' viewBox='$viewbox' width='100%' height='100%' transform='scale(1 -1)'>"
8-
"<path stroke='currentColor' d='$($PathData)' />"
8+
"<path stroke='currentColor' fill='transparent' d='$($PathData)' />"
99
@"
1010
<circle r="5" fill="currentColor">
1111
<animateMotion

Types/Font.Glyph/get_Outline.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ $bbox = $fontFace.bbox -split '\s' -as [double[]]
44
$viewbox = "0 $($bbox[-3] - $descent) $($bbox[-2]) $($bbox[-1])"
55
@("<svg xmlns='http://www.w3.org/2000/svg' viewBox='$viewbox' width='100%' height='100%' transform='scale(1 -1)'>"
66

7-
"<path stroke='currentColor' d='$($this.PathData)' />"
7+
"<path stroke='currentColor' fill='transparent' d='$($this.PathData)' />"
88
"</svg>") -as [xml]

0 commit comments

Comments
 (0)