How to use the psautohint.ufoFont.HashPointPen function in psautohint

To help you get started, we’ve selected a few psautohint examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adobe-type-tools / afdko / python / afdko / ufotools.py View on Github external
def _get_glyph_width(glyph):
    hash_pen = HashPointPen(glyph)
    glyph.drawPoints(hash_pen)
    return getattr(glyph, 'width', 0)
github adobe-type-tools / afdko / python / afdko / ufotools.py View on Github external
def recalcHashEntry(self, glyphName, glyph):
        hashBefore, historyList = self.hashMap[glyphName]

        hash_pen = HashPointPen(glyph)
        glyph.drawPoints(hash_pen)
        hashAfter = hash_pen.getHash()

        if hashAfter != hashBefore:
            self.hashMap[glyphName] = [hashAfter, historyList]
            self.hashMapChanged = True

psautohint

Python wrapper for Adobe's PostScript autohinter

Apache-2.0
Latest version published 3 years ago

Package Health Score

42 / 100
Full package analysis

Similar packages