Skip to content

Commit 3965305

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: Font.File.get_FamilyName ( Fixes #5 )
1 parent 0c3aa1a commit 3965305

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Font.types.ps1xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!-- Generated with EZOut 2.0.6: Install-Module EZOut or https://github.com/StartAutomating/EZOut -->
2+
<Types>
3+
<Type>
4+
<Name>Font.File</Name>
5+
<Members>
6+
<AliasProperty>
7+
<Name>Family</Name>
8+
<ReferencedMemberName>FamilyName</ReferencedMemberName>
9+
</AliasProperty>
10+
<ScriptProperty>
11+
<Name>FamilyName</Name>
12+
<GetScriptBlock>
13+
$this.Name.Substring(0, $this.Name.Length - $this.Extension.Length) -replace '-.+?$'
14+
</GetScriptBlock>
15+
</ScriptProperty>
16+
</Members>
17+
</Type>
18+
</Types>

0 commit comments

Comments
 (0)