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_SVG
1 parent c6238f8 commit 30bf114Copy full SHA for 30bf114
Font.types.ps1xml
@@ -80,10 +80,10 @@ $this.d
80
$fontFace = $this.ParentNode.'font-face'
81
$descent = $fontFace.descent -as [double]
82
$bbox = $fontFace.bbox -split '\s' -as [double[]]
83
-$viewbox = "0 $($bbox[-3] - $descent) $($bbox[-2]) $($bbox[-1])"
+$viewbox = $bbox
84
@(
85
"<svg xmlns='http://www.w3.org/2000/svg' viewBox='$viewbox' width='100%' height='100%' transform='scale(1 -1)'>"
86
- "<path fill='currentColor' d='$($this.PathData)' />"
+ "<path fill='currentColor' d='$($this.PathData)' />"
87
"</svg>"
88
) -as [xml]
89
</GetScriptBlock>
0 commit comments