How to use the ufo2ft.pens.roundIntPoint function in ufo2ft

To help you get started, we’ve selected a few ufo2ft 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 googlefonts / ufo2ft / Lib / ufo2ft / pens / t2CharStringPen.py View on Github external
def _curveToOne(self, pt1, pt2, pt3):
        RelativeCoordinatePen._curveToOne(self, roundIntPoint(pt1), roundIntPoint(pt2), roundIntPoint(pt3))
github googlefonts / ufo2ft / Lib / ufo2ft / pens / t2CharStringPen.py View on Github external
def _relativeCurveToOne(self, pt1, pt2, pt3):
        self._storeHeldMove()
        pt1 = roundIntPoint(pt1)
        pt2 = roundIntPoint(pt2)
        pt3 = roundIntPoint(pt3)
        x1, y1 = pt1
        x2, y2 = pt2
        x3, y3 = pt3
        self._program.extend([x1, y1, x2, y2, x3, y3, "rrcurveto"])
github googlefonts / ufo2ft / Lib / ufo2ft / pens / t2CharStringPen.py View on Github external
def _relativeMoveTo(self, pt):
        pt = roundIntPoint(pt)
        x, y = pt
        self._heldMove = [x, y, "rmoveto"]
github googlefonts / ufo2ft / Lib / ufo2ft / pens / t2CharStringPen.py View on Github external
def _relativeCurveToOne(self, pt1, pt2, pt3):
        self._storeHeldMove()
        pt1 = roundIntPoint(pt1)
        pt2 = roundIntPoint(pt2)
        pt3 = roundIntPoint(pt3)
        x1, y1 = pt1
        x2, y2 = pt2
        x3, y3 = pt3
        self._program.extend([x1, y1, x2, y2, x3, y3, "rrcurveto"])
github googlefonts / ufo2ft / Lib / ufo2ft / pens / t2CharStringPen.py View on Github external
def _relativeCurveToOne(self, pt1, pt2, pt3):
        self._storeHeldMove()
        pt1 = roundIntPoint(pt1)
        pt2 = roundIntPoint(pt2)
        pt3 = roundIntPoint(pt3)
        x1, y1 = pt1
        x2, y2 = pt2
        x3, y3 = pt3
        self._program.extend([x1, y1, x2, y2, x3, y3, "rrcurveto"])
github googlefonts / ufo2ft / Lib / ufo2ft / pens / t2CharStringPen.py View on Github external
def _moveTo(self, pt):
        RelativeCoordinatePen._moveTo(self, roundIntPoint(pt))
github googlefonts / ufo2ft / Lib / ufo2ft / pens / t2CharStringPen.py View on Github external
def _relativeLineTo(self, pt):
        self._storeHeldMove()
        pt = roundIntPoint(pt)
        x, y = pt
        self._program.extend([x, y, "rlineto"])
github googlefonts / ufo2ft / Lib / ufo2ft / pens / t2CharStringPen.py View on Github external
def _lineTo(self, pt):
        RelativeCoordinatePen._lineTo(self, roundIntPoint(pt))