#TUNING by cg
authorClaus Gittinger <cg@exept.de>
Thu, 21 Apr 2016 17:11:30 +0200
changeset 19631 3eda8aa7e7fe
parent 19630 6588977b5589
child 19632 a1cde32a22f6
#TUNING by cg class: UserPreferences changed: #fontPreferencesChanged
UserPreferences.st
--- a/UserPreferences.st	Thu Apr 21 16:54:14 2016 +0200
+++ b/UserPreferences.st	Thu Apr 21 17:11:30 2016 +0200
@@ -1939,6 +1939,9 @@
     dict := self at:#fontPreferences.
     dict isNil ifTrue:[^ self].
 
+    Display isNil ifTrue:[^ self].
+    Smalltalk isInitialized ifFalse:[^ self].
+    
     getFont := 
         [:key|
             |s fn|
@@ -1950,6 +1953,7 @@
                     fn := XftFontDescription for:fn
                 ]    
             ].
+            fn notNil ifTrue:[fn := fn onDevice:Display].
             fn
         ].