Skip to content

Commit 4fe61c1

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: Font.svg.get_UnitsPerEm ( Fixes #12 )
1 parent 9806e12 commit 4fe61c1

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Font.types.ps1xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434
<Name>FontFamily</Name>
3535
<ReferencedMemberName>FamilyName</ReferencedMemberName>
3636
</AliasProperty>
37+
<ScriptProperty>
38+
<Name>BoundingBox</Name>
39+
<GetScriptBlock>
40+
$this.FontFace.bbox -split '\s' -as [float[]]
41+
</GetScriptBlock>
42+
</ScriptProperty>
3743
<ScriptProperty>
3844
<Name>FamilyName</Name>
3945
<GetScriptBlock>
@@ -69,6 +75,12 @@
6975
Select-Object -ExpandProperty font-weight
7076
</GetScriptBlock>
7177
</ScriptProperty>
78+
<ScriptProperty>
79+
<Name>UnitsPerEm</Name>
80+
<GetScriptBlock>
81+
$this.FontFace.'units-per-em' -as [float]
82+
</GetScriptBlock>
83+
</ScriptProperty>
7284
</Members>
7385
</Type>
7486
</Types>

0 commit comments

Comments
 (0)