Skip to content

Commit 86d548d

Browse files
feat: Font.svg.get_XML ( Fixes #17 )
1 parent 34edc9a commit 86d548d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Types/Font.svg/get_FontFace.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
$this.SVG |
1+
$this.XML |
22
Select-Xml -Namespace @{s='http://www.w3.org/2000/svg'} -XPath //s:font-face |
33
Select-Object -ExpandProperty Node
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
if (-not $this.'#SVG') {
1+
if (-not $this.'#XML') {
22
if ($this -is [IO.FileInfo] -and $this.Extension -eq '.svg') {
33
$svgXml = (Get-Content -LiteralPath $this.FullName -Raw) -as [xml]
44
if ($svgXml) {
5-
$this | Add-Member NoteProperty '#SVG' $svgXml -Force
5+
$this | Add-Member NoteProperty '#XML' $svgXml -Force
66
}
77
}
88
}
9-
return $this.'#SVG'
9+
return $this.'#XML'

0 commit comments

Comments
 (0)