fix for github actions

This commit is contained in:
treeform 2022-05-15 12:11:40 -07:00
parent af90e6e888
commit 4896fd0e68

View file

@ -1,4 +1,4 @@
import pixie, pixie/fileformats/png, strformat, unicode import pixie, pixie/fileformats/png, strformat, unicode, os
proc wh(image: Image): Vec2 = proc wh(image: Image): Vec2 =
## Return with and height as a size vector. ## Return with and height as a size vector.
@ -1242,7 +1242,8 @@ when defined(windows):
"/Windows/Fonts/YuGothR.ttc", "/Windows/Fonts/YuGothR.ttc",
] ]
for file in files: for file in files:
echo file if fileExists(file):
var typefaces = readTypefaces(file) echo file
for i, typeface in typefaces: var typefaces = readTypefaces(file)
echo i, ": ", typeface.name for i, typeface in typefaces:
echo i, ": ", typeface.name