Esempio n. 1
0
 def drawFillAndPoints(self, painter, glyph, flags):
     drawFill = self.drawingAttribute("showGlyphFill", flags)
     drawComponentFill = self.drawingAttribute("showGlyphComponentFill",
                                               flags)
     drawing.drawGlyphFillAndStroke(painter,
                                    glyph,
                                    self._inverseScale,
                                    drawFill=drawFill,
                                    drawComponentFill=drawComponentFill,
                                    drawStroke=False)
     if not self._impliedPointSize > GlyphViewMinSizeForDetails:
         return
     drawStartPoints = self.drawingAttribute("showGlyphStartPoints", flags)
     drawOnCurves = self.drawingAttribute("showGlyphOnCurvePoints", flags)
     drawOffCurves = self.drawingAttribute("showGlyphOffCurvePoints", flags)
     drawCoordinates = self.drawingAttribute("showGlyphPointCoordinates",
                                             flags)
     drawing.drawGlyphPoints(painter,
                             glyph,
                             self._inverseScale,
                             drawOnCurves=drawOnCurves,
                             drawOffCurves=drawOffCurves,
                             drawStartPoints=drawStartPoints,
                             drawCoordinates=drawCoordinates,
                             backgroundColor=self._backgroundColor)
Esempio n. 2
0
 def drawPoints(self, painter, glyph, layerName, rect):
     drawStartPoints = self.drawingAttribute(
         "showGlyphStartPoints", layerName) and self._pointSize > 175
     drawOnCurves = self.drawingAttribute(
         "showGlyphOnCurvePoints", layerName) and self._pointSize > 175
     drawOffCurves = self.drawingAttribute(
         "showGlyphOffCurvePoints", layerName) and self._pointSize > 175
     drawCoordinates = self.drawingAttribute(
         "showGlyphPointCoordinates", layerName) and self._pointSize > 250
     drawing.drawGlyphPoints(
         painter, glyph, self._inverseScale,
         drawStartPoints=drawStartPoints, drawOnCurves=drawOnCurves,
         drawOffCurves=drawOffCurves, drawCoordinates=drawCoordinates,
         backgroundColor=self._backgroundColor)
Esempio n. 3
0
 def drawPoints(self, painter, glyph, layerName):
     if not self._impliedPointSize > GlyphViewMinSizeForDetails:
         return
     drawStartPoints = self.drawingAttribute("showGlyphStartPoints",
                                             layerName)
     drawOnCurves = self.drawingAttribute("showGlyphOnCurvePoints",
                                          layerName)
     drawOffCurves = self.drawingAttribute("showGlyphOffCurvePoints",
                                           layerName)
     drawCoordinates = self.drawingAttribute("showGlyphPointCoordinates",
                                             layerName)
     drawing.drawGlyphPoints(painter,
                             glyph,
                             self._inverseScale,
                             self._drawingRect,
                             drawStartPoints=drawStartPoints,
                             drawOnCurves=drawOnCurves,
                             drawOffCurves=drawOffCurves,
                             drawCoordinates=drawCoordinates)
Esempio n. 4
0
 def drawFillAndPoints(self, painter, glyph, layerName):
     drawFill = self.drawingAttribute("showGlyphFill", layerName)
     drawing.drawGlyphFillAndStroke(
         painter, glyph, self._inverseScale,
         drawFill=drawFill, drawStroke=False)
     if not self._impliedPointSize > GlyphViewMinSizeForDetails:
         return
     drawStartPoints = self.drawingAttribute(
         "showGlyphStartPoints", layerName)
     drawOnCurves = self.drawingAttribute(
         "showGlyphOnCurvePoints", layerName)
     drawOffCurves = self.drawingAttribute(
         "showGlyphOffCurvePoints", layerName)
     drawCoordinates = self.drawingAttribute(
         "showGlyphPointCoordinates", layerName)
     drawing.drawGlyphPoints(
         painter, glyph, self._inverseScale,
         drawStartPoints=drawStartPoints, drawOnCurves=drawOnCurves,
         drawOffCurves=drawOffCurves, drawCoordinates=drawCoordinates,
         backgroundColor=self._backgroundColor)