Skip to content

Commit 931f26c

Browse files
feat: Auto-installing fontforge in workflow ( Fixes #1 )
2 parents 06d3df5 + 9bf7633 commit 931f26c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Font.types.ps1xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@
3434
<Name>FontFamily</Name>
3535
<ReferencedMemberName>FamilyName</ReferencedMemberName>
3636
</AliasProperty>
37+
<ScriptMethod>
38+
<Name>GetGlyph</Name>
39+
<Script>
40+
param([string]$value)
41+
$this |
42+
Select-Xml -Namespace @{s='http://www.w3.org/2000/svg'} -XPath "//s:glyph[@unicode='$($value -replace "'", "''")']" |
43+
Select-Object -ExpandProperty Node
44+
</Script>
45+
</ScriptMethod>
3746
<ScriptProperty>
3847
<Name>Ascent</Name>
3948
<GetScriptBlock>

0 commit comments

Comments
 (0)