File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ if ($value -is [string] -and $value.Length -le 2) {
7676 <ScriptProperty >
7777 <Name >FontFace</Name >
7878 <GetScriptBlock >
79- $this.SVG |
79+ $this.XML |
8080 Select-Xml -Namespace @{s='http://www.w3.org/2000/svg'} -XPath //s:font-face |
8181 Select-Object -ExpandProperty Node
8282 </GetScriptBlock >
@@ -94,23 +94,23 @@ if ($value -is [string] -and $value.Length -le 2) {
9494 </GetScriptBlock >
9595 </ScriptProperty >
9696 <ScriptProperty >
97- <Name >SVG</Name >
97+ <Name >UnitsPerEm</Name >
98+ <GetScriptBlock >
99+ $this.FontFace.'units-per-em' -as [float]
100+ </GetScriptBlock >
101+ </ScriptProperty >
102+ <ScriptProperty >
103+ <Name >XML</Name >
98104 <GetScriptBlock >
99- if (-not $this.'#SVG ') {
105+ if (-not $this.'#XML ') {
100106 if ($this -is [IO.FileInfo] -and $this.Extension -eq '.svg') {
101107 $svgXml = (Get-Content -LiteralPath $this.FullName -Raw) -as [xml]
102108 if ($svgXml) {
103- $this | Add-Member NoteProperty '#SVG ' $svgXml -Force
109+ $this | Add-Member NoteProperty '#XML ' $svgXml -Force
104110 }
105111 }
106112}
107- return $this.'#SVG'
108- </GetScriptBlock >
109- </ScriptProperty >
110- <ScriptProperty >
111- <Name >UnitsPerEm</Name >
112- <GetScriptBlock >
113- $this.FontFace.'units-per-em' -as [float]
113+ return $this.'#XML'
114114 </GetScriptBlock >
115115 </ScriptProperty >
116116 </Members >
You can’t perform that action at this time.
0 commit comments