예제 #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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
파일: glyphView.py 프로젝트: yalvex/trufont
 def drawStroke(self, painter, glyph, layerName):
     showStroke = self.drawingAttribute("showGlyphStroke", layerName)
     drawing.drawGlyphFillAndStroke(
         painter,
         glyph,
         self._inverseScale,
         drawFill=False,
         drawComponentFill=False,
         drawStroke=showStroke,
     )
예제 #5
0
 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)
예제 #6
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)
예제 #7
0
 def drawStroke(self, painter, glyph, layerName):
     showStroke = self.drawingAttribute("showGlyphStroke", layerName)
     drawing.drawGlyphFillAndStroke(
         painter, glyph, self._inverseScale,
         drawFill=False, drawComponentFill=False, drawStroke=showStroke)