diff options
| author | Felipe Corrêa da Silva Sanches | 2015-09-25 00:30:56 -0300 | 
|---|---|---|
| committer | Felipe Corrêa da Silva Sanches | 2015-09-25 01:26:50 -0300 | 
| commit | 0092ce59665867c23085489c81287c5528e06522 (patch) | |
| tree | ff4ee0ff7aac2ca51618af5120a0ed1df45bf9bd /Lib/defconQt/glyphCollectionView.py | |
| parent | 999ae751a4f661c85ace554a8eb3feff793eebc7 (diff) | |
| download | trufont-0092ce59665867c23085489c81287c5528e06522.tar.bz2 | |
issue #19: Copying and pasting components (a.k.a. "references" in fontforge jargon) into glyphs.
Diffstat (limited to 'Lib/defconQt/glyphCollectionView.py')
| -rw-r--r-- | Lib/defconQt/glyphCollectionView.py | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/Lib/defconQt/glyphCollectionView.py b/Lib/defconQt/glyphCollectionView.py index e49b32a..df4a305 100644 --- a/Lib/defconQt/glyphCollectionView.py +++ b/Lib/defconQt/glyphCollectionView.py @@ -365,6 +365,11 @@ class GlyphCollectionWidget(QWidget):                      painter.translate(column * self.squareSize + x_offset, row * self.squareSize + self.squareSize + y_offset)                      painter.scale(factor, -factor)                      painter.fillPath(outline, Qt.black) +                    try: +                        for ref in glyph.refs: +                            painter.fillPath(ref.getRepresentation("defconQt.QPainterPath"), Qt.black) +                    except: +                        pass                      painter.restore()                  else:                      painter.save() | 
