diff options
| author | Adrien Tétar | 2015-09-21 22:14:45 +0200 |
|---|---|---|
| committer | Adrien Tétar | 2015-09-21 22:14:45 +0200 |
| commit | ce68fd8b05271c317d908ce4c8d73c9cbd1656ad (patch) | |
| tree | 42493efb33c2a1841203a82c92e22b893bb0b8e4 /Lib/defconQt/fontView.py | |
| parent | 411b0f594f6d660f13f3e1b57873a9fbda0dbd89 (diff) | |
| download | trufont-ce68fd8b05271c317d908ce4c8d73c9cbd1656ad.tar.bz2 | |
meta/defcon: check-in copy-paste, template glyph
Diffstat (limited to 'Lib/defconQt/fontView.py')
| -rw-r--r-- | Lib/defconQt/fontView.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/defconQt/fontView.py b/Lib/defconQt/fontView.py index ba773c3..6a603a4 100644 --- a/Lib/defconQt/fontView.py +++ b/Lib/defconQt/fontView.py @@ -1,10 +1,9 @@ -from defcon import Font from defconQt.featureTextEditor import MainEditWindow from defconQt.fontInfo import TabDialog from defconQt.glyphCollectionView import GlyphCollectionWidget from defconQt.glyphView import MainGfxWindow from defconQt.groupsView import GroupsWindow -from defconQt.objects.defcon import CharacterSet +from defconQt.objects.defcon import CharacterSet, TFont from defconQt.spaceCenter import MainSpaceWindow from fontTools.agl import AGL2UV # TODO: remove globs when things start to stabilize @@ -80,7 +79,7 @@ class AddGlyphDialog(QDialog): self.setLayout(layout) @staticmethod - def getNewGlyphNames(parent=None, currentGlyphs=None): + def getNewGlyphNames(parent, currentGlyphs=None): dialog = AddGlyphDialog(currentGlyphs, parent) result = dialog.exec_() sortFont = False @@ -229,7 +228,7 @@ class SortDialog(QDialog): return 0 @staticmethod - def getDescriptor(parent=None, sortDescriptor=None): + def getDescriptor(parent, sortDescriptor=None): dialog = SortDialog(sortDescriptor, parent) result = dialog.exec_() if dialog.characterSetBox.isChecked(): @@ -336,7 +335,7 @@ class MainWindow(QMainWindow): def newFile(self): ok = self.maybeSaveBeforeExit() if not ok: return - self.font = Font() + self.font = TFont() self.font.info.unitsPerEm = 1000 self.font.info.ascender = 750 self.font.info.descender = -250 @@ -476,6 +475,7 @@ class MainWindow(QMainWindow): else: glyph.lib["public.markColor"] = ",".join(str(c) for c in color.getRgbF()) + # TODO: maybe store this in TFont def newStandardGlyph(self, name): self.font.newGlyph(name) self.font[name].width = 500 |
