pixie/tests/common.nim
2021-05-11 22:40:23 -05:00

8 lines
209 B
Nim

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()