#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Sun, 12 Feb 2017 23:00:50 +0100
changeset 7877 ff891cf50878
parent 7876 44314d769878
child 7878 87d2abc0d82a
#REFACTORING by cg class: XftFontDescription changed: #asNonXftFont
XftFontDescription.st
--- a/XftFontDescription.st	Sun Feb 12 23:00:06 2017 +0100
+++ b/XftFontDescription.st	Sun Feb 12 23:00:50 2017 +0100
@@ -695,10 +695,21 @@
                     size:(sizeUnit == #px ifTrue:[pixelSize] ifFalse:[size])
                     sizeUnit:sizeUnit
                     encoding:encoding.
-
+    newFont isForceNonXFTFont:true.
     ^ newFont
 
-    "Modified (comment): / 12-02-2017 / 21:56:17 / cg"
+   "
+    |view1 view2|
+
+    view1 := TextView new openAndWait.
+    view2 := TextView new openAndWait.
+    view1 font:(Button defaultFont).
+    view1 contents:'Hello world'.
+    view2 font:(Button defaultFont asNonXftFont onDevice:Display).
+    view2 contents:'Hello world'.
+   "
+
+    "Modified (comment): / 12-02-2017 / 22:14:47 / cg"
 ! !
 
 !XftFontDescription methodsFor:'error reporting'!