diff options
| author | Adrien Tétar | 2015-10-18 20:30:39 +0200 |
|---|---|---|
| committer | Adrien Tétar | 2015-10-18 20:30:39 +0200 |
| commit | 495d043291f65264ea146dfa7da9a4debd05f64c (patch) | |
| tree | efa83481e12031b545697a1faa0a049ce23d2543 | |
| parent | 1dd657d644ea7984565731956118af2f29d4c392 (diff) | |
| download | trufont-495d043291f65264ea146dfa7da9a4debd05f64c.tar.bz2 | |
glyphCollectionView: bigger text on OSX
| -rw-r--r-- | Lib/defconQt/glyphCollectionView.py | 2 | ||||
| -rw-r--r-- | Lib/defconQt/util/platformSpecific.py | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/Lib/defconQt/glyphCollectionView.py b/Lib/defconQt/glyphCollectionView.py index 343b01d..0fdef90 100644 --- a/Lib/defconQt/glyphCollectionView.py +++ b/Lib/defconQt/glyphCollectionView.py @@ -20,7 +20,7 @@ headerFont = QFont() headerFont.setFamily('Lucida Sans Unicode') headerFont.insertSubstitution('Lucida Sans Unicode', 'Lucida Grande') headerFont.insertSubstitution('Lucida Sans Unicode', 'Luxi Sans') -headerFont.setPointSize(8) +headerFont.setPointSize(platformSpecific.headerPointSize) voidFont = QFont(headerFont) voidFont.setPointSize(24) metrics = QFontMetrics(headerFont) diff --git a/Lib/defconQt/util/platformSpecific.py b/Lib/defconQt/util/platformSpecific.py index fb3d04c..ba49172 100644 --- a/Lib/defconQt/util/platformSpecific.py +++ b/Lib/defconQt/util/platformSpecific.py @@ -10,6 +10,15 @@ if sys.platform == "darwin": else: fileFormats = "UFO Fonts (metainfo.plist)" +# --------- +# Font size +# --------- + +if sys.platform == "darwin": + headerPointSize = 11 +else: + headerPointSize = 8 + # ---- # Keys # ---- |
