diff options
| author | Adrien Tétar | 2015-10-11 12:25:11 +0200 | 
|---|---|---|
| committer | Adrien Tétar | 2015-10-11 12:25:11 +0200 | 
| commit | a80988874c5d621a2b11c75f5af31b23d3008ee7 (patch) | |
| tree | ebfab62995527dd24924ffbec0ab349072ddabb9 /Lib/defconQt/groupsView.py | |
| parent | ea6b465a799c397227c74c4da74d7cf636a088e4 (diff) | |
| download | trufont-a80988874c5d621a2b11c75f5af31b23d3008ee7.tar.bz2 | |
meta: default to empty font, fixture
Diffstat (limited to 'Lib/defconQt/groupsView.py')
| -rw-r--r-- | Lib/defconQt/groupsView.py | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/Lib/defconQt/groupsView.py b/Lib/defconQt/groupsView.py index a1600b8..6a15541 100644 --- a/Lib/defconQt/groupsView.py +++ b/Lib/defconQt/groupsView.py @@ -34,9 +34,11 @@ class GroupStackWidget(QWidget):      def __init__(self, font, glyphs=[], parent=None):          super(GroupStackWidget, self).__init__(parent)          self.ascender = font.info.ascender +        if self.ascender is None: self.ascender = 750          self.glyphs = glyphs          self.maxWidth = max(glyph.width for glyph in self.glyphs) if len(self.glyphs) else 300          self.upm = font.info.unitsPerEm +        if self.upm is None: self.upm = 1000          self.padding = 10          self.alignRight = False @@ -238,6 +240,9 @@ class GroupsWindow(QWidget):          currentGroup = currentGroup.text()          glyphNames = event.mimeData().text().split(" ")          for gName in glyphNames: +            # TODO: should we accept template glyphs here? +            if self.font[gName].template: +                continue              # Due to defcon limitations, we must fetch and update for the              # notification to pass through              currentGroupList = self.font.groups[currentGroup] | 
