aboutsummaryrefslogtreecommitdiffstats
path: root/Lib/defconQt/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/defconQt/__main__.py')
-rw-r--r--Lib/defconQt/__main__.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/Lib/defconQt/__main__.py b/Lib/defconQt/__main__.py
index 270764d..517f8ce 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
@@ -17,10 +18,20 @@ def main():
representationFactories.registerAllFactories()
app = Application(sys.argv)
# TODO: http://stackoverflow.com/a/21330349/2037879
- app.setOrganizationName("A. Tétar & Co.")
+ app.setOrganizationName("TruFont")
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
+ try:
+ glyphList = glyphList.parseGlyphList(glyphListPath)
+ except Exception as e:
+ print(e)
+ else:
+ app.GL2UV = glyphList
window = MainWindow(font)
window.show()
sys.exit(app.exec_())