diff options
| author | Adrien Tétar | 2015-11-07 12:33:02 +0100 | 
|---|---|---|
| committer | Adrien Tétar | 2015-11-07 18:52:51 +0100 | 
| commit | 9b2bc47a73a1e453aed95df907b1b120bd32b7b4 (patch) | |
| tree | 78160fa57f08865d08204097e938d16eb47e8455 /Lib/defconQt/__main__.py | |
| parent | d648e2cb3f0a7bf7644dd2b2e610804e6e943a46 (diff) | |
| download | trufont-9b2bc47a73a1e453aed95df907b1b120bd32b7b4.tar.bz2 | |
meta: add custom glyphList support
Diffstat (limited to 'Lib/defconQt/__main__.py')
| -rw-r--r-- | Lib/defconQt/__main__.py | 8 | 
1 files changed, 7 insertions, 1 deletions
| diff --git a/Lib/defconQt/__main__.py b/Lib/defconQt/__main__.py index 270764d..79fa2cf 100644 --- a/Lib/defconQt/__main__.py +++ b/Lib/defconQt/__main__.py @@ -1,9 +1,10 @@ -from defconQt.objects.defcon import TFont  from defconQt import representationFactories  from defconQt import icons_db  # noqa  from defconQt.fontView import Application, MainWindow +from defconQt.objects.defcon import TFont  import sys  import os +from PyQt5.QtCore import QSettings  from PyQt5.QtGui import QIcon @@ -21,6 +22,11 @@ def main():      app.setOrganizationDomain("trufont.github.io")      app.setApplicationName("TruFont")      app.setWindowIcon(QIcon(":/resources/app.png")) +    settings = QSettings() +    glyphListPath = settings.value("settings/glyphListPath", type=str) +    if glyphListPath and os.path.exists(glyphListPath): +        from defconQt.util import glyphList +        app.GL2UV = glyphList.parseGlyphList(glyphListPath)      window = MainWindow(font)      window.show()      sys.exit(app.exec_()) | 
