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)
def drawFillAndStroke(self, painter, glyph, layerName): showFill = self.drawingAttribute("showGlyphFill", layerName) showStroke = self.drawingAttribute("showGlyphStroke", layerName) drawing.drawGlyphFillAndStroke(painter, glyph, self._inverseScale, self._drawingRect, drawFill=showFill, drawStroke=showStroke)
def drawFillAndStroke(self, painter, glyph, layerName, rect): showFill = self.drawingAttribute("showGlyphFill", layerName) showStroke = self.drawingAttribute("showGlyphStroke", layerName) fillColor = None if not self._showLayers: fillColor = self._glyphColor drawing.drawGlyphFillAndStroke( painter, glyph, self._inverseScale, drawFill=showFill, drawStroke=showStroke, contourFillColor=fillColor, componentFillColor=fillColor)
def drawStroke(self, painter, glyph, layerName): showStroke = self.drawingAttribute("showGlyphStroke", layerName) drawing.drawGlyphFillAndStroke( painter, glyph, self._inverseScale, drawFill=False, drawComponentFill=False, drawStroke=showStroke, )
def drawStroke(self, painter, glyph, flags): drawStroke = self.drawingAttribute("showGlyphStroke", flags) drawComponentStroke = self.drawingAttribute("showGlyphComponentStroke", flags) drawing.drawGlyphFillAndStroke(painter, glyph, self._inverseScale, drawFill=False, drawComponentsFill=False, drawStroke=drawStroke, drawComponentStroke=drawComponentStroke)
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)
def drawStroke(self, painter, glyph, layerName): showStroke = self.drawingAttribute("showGlyphStroke", layerName) drawing.drawGlyphFillAndStroke( painter, glyph, self._inverseScale, drawFill=False, drawComponentFill=False, drawStroke=showStroke)