8 lines
209 B
Nim
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()
|