pixie/tests/common.nim

8 lines
209 B
Nim
Raw Normal View History

2021-04-26 07:05:27 +00:00
import algorithm, os
proc findAllFonts*(rootPath: string): seq[string] =
for fontPath in walkDirRec(rootPath):
if splitFile(fontPath).ext in [".ttf", ".otf"]:
result.add(fontPath)
result.sort()