Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/r/o/robothon-HEAD/count.py   robothon(Download)
# Counts the total number of glyphs of all the fonts in a directory tree
 
import os
from defcon import Font
from extractor import extractUFO
            fp = os.path.join(dirname, fn)
            font = Font()
            extractUFO(fp, font)
            count += len(font)
            print "Running total: %s glyphs in %s fonts." % (count, fontCount)