diff options
Diffstat (limited to 'Lib/defconQt/glyphView.py')
| -rw-r--r-- | Lib/defconQt/glyphView.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/defconQt/glyphView.py b/Lib/defconQt/glyphView.py index c96a4f1..49f34ab 100644 --- a/Lib/defconQt/glyphView.py +++ b/Lib/defconQt/glyphView.py @@ -1357,9 +1357,7 @@ class GlyphView(QGraphicsView): def addBlues(self): scene = self.scene() - #width = self._glyph.width# * self._inverseScale font = self._glyph.getParent() - #painter.setCompositionMode(QPainter.CompositionMode_SourceOver) if font is None: return attrs = ["postscriptBlueValues", "postscriptOtherBlues"] @@ -1564,6 +1562,11 @@ class GlyphView(QGraphicsView): self.parent().setWindowTitle(self._glyph.name, self._glyph.getParent()) self.redrawGlyph() + def showEvent(self, event): + super(GlyphView, self).showEvent(event) + font = self._glyph.getParent() + self.fitInView(0, font.info.descender, self._glyph.width, font.info.unitsPerEm, Qt.KeepAspectRatio) + def mousePressEvent(self, event): if (event.button() == Qt.MidButton): dragMode = self.dragMode() |
