XftFontDescription.st
changeset 7707 3205422f8332
parent 7673 8fcc7f754c03
child 7723 620e91f9b082
child 7796 306a864eb675
--- a/XftFontDescription.st	Thu Nov 24 09:54:39 2016 +0100
+++ b/XftFontDescription.st	Thu Nov 24 09:55:48 2016 +0100
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "{ Package: 'stx:libview' }"
 
 "{ NameSpace: Smalltalk }"
@@ -660,13 +658,13 @@
 asNonXftFont
     |newFont|
 
-    newFont := FontDescription
-		    family:family
-		    face:face
-		    style:style
-		    size:(sizeUnit == #px ifTrue:[pixelSize] ifFalse:[size])
-		    sizeUnit:sizeUnit
-		    encoding:encoding.
+    newFont := Font
+                    family:family
+                    face:face
+                    style:style
+                    size:(sizeUnit == #px ifTrue:[pixelSize] ifFalse:[size])
+                    sizeUnit:sizeUnit
+                    encoding:encoding.
 
     ^ newFont
 ! !