import glob | |
# change the root directory according to your setup | |
ROOT = '../../input/fonts/ofl' | |
# some fonts are within /ofl/fontname/static directory (2 levels deep) | |
all_fonts_path = glob.glob(ROOT + '/**/**/*.ttf', recursive=True) | |
print('number of font files in total: ', len(all_fonts_path)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment