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.Save()
1 parent 960a669 commit 9e33cd5Copy full SHA for 9e33cd5
2 files changed
Examples/MindYourPsAndQs.font.ps1
@@ -21,7 +21,5 @@ $importedFont =
21
Select-Object -First 1 |
22
Import-Font
23
24
-$importedFont.GetGlyph("P").SVG.Save("$pwd/${FontFamily}_P.svg")
25
-Get-Item "$pwd/${FontFamily}_P.svg"
26
-$importedFont.GetGlyph("q").SVG.Save("$pwd/${FontFamily}_q.svg")
27
-Get-Item "$pwd/${FontFamily}_q.svg"
+$importedFont.GetGlyph("P").Save("./${FontFamily}_P.svg")
+$importedFont.GetGlyph("q").Save("./${FontFamily}_q.svg")
Types/Font.Glyph/Save.ps1
@@ -0,0 +1,6 @@
1
+param([string]$FilePath)
2
+
3
+$unresolvedPath = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($FilePath)
4
+$createdFile = New-Item -ItemType File -Path $unresolvedPath
5
+$this.SVG.Save($createdFile.FullName)
6
+Get-Item -LiteralPath $createdFile.FullName
0 commit comments