From 4896fd0e687fafb97c14a7884ae1104d3645230d Mon Sep 17 00:00:00 2001 From: treeform Date: Sun, 15 May 2022 12:11:40 -0700 Subject: [PATCH] fix for github actions --- tests/test_fonts.nim | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/test_fonts.nim b/tests/test_fonts.nim index facd200..0ffff65 100644 --- a/tests/test_fonts.nim +++ b/tests/test_fonts.nim @@ -1,4 +1,4 @@ -import pixie, pixie/fileformats/png, strformat, unicode +import pixie, pixie/fileformats/png, strformat, unicode, os proc wh(image: Image): Vec2 = ## Return with and height as a size vector. @@ -1242,7 +1242,8 @@ when defined(windows): "/Windows/Fonts/YuGothR.ttc", ] for file in files: - echo file - var typefaces = readTypefaces(file) - for i, typeface in typefaces: - echo i, ": ", typeface.name + if fileExists(file): + echo file + var typefaces = readTypefaces(file) + for i, typeface in typefaces: + echo i, ": ", typeface.name