Skip to content

Commit d28ea3f

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: Font.Glyph.Save() ( Fixes #27 )
1 parent 9e33cd5 commit d28ea3f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Font.types.ps1xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@
2222
<Type>
2323
<Name>Font.Glyph</Name>
2424
<Members>
25+
<ScriptMethod>
26+
<Name>Save</Name>
27+
<Script>
28+
param([string]$FilePath)
29+
30+
$unresolvedPath = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($FilePath)
31+
$createdFile = New-Item -ItemType File -Path $unresolvedPath
32+
$this.SVG.Save($createdFile.FullName)
33+
Get-Item -LiteralPath $createdFile.FullName
34+
</Script>
35+
</ScriptMethod>
2536
<ScriptProperty>
2637
<Name>Motion</Name>
2738
<GetScriptBlock>

0 commit comments

Comments
 (0)