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.
1 parent 225e240 commit 06d3df5Copy full SHA for 06d3df5
1 file changed
Font.psm1
@@ -29,6 +29,15 @@ if ($home) {
29
$script:this = $myModule
30
31
#region Custom
32
+$fontForge = $ExecutionContext.SessionState.InvokeCommand.GetCommand('fontforge','application')
33
+if (-not $fontForge) {
34
+ if ($env:GITHUB_EVENT_PATH) {
35
+ sudo apt-get install fontforge -y | Out-Host
36
+ $fontForge = $ExecutionContext.SessionState.InvokeCommand.GetCommand('fontforge','application')
37
+ } else {
38
+ Write-Warning "FontForge is not installed and in the path. Import/Export-Font will not work"
39
+ }
40
+}
41
#endregion Custom
42
43
Export-ModuleMember -Alias * -Function * -Variable $myModule.Name
0 commit comments