class: Font
authorStefan Vogel <sv@exept.de>
Fri, 22 Nov 2013 12:02:32 +0100
changeset 6158 17d06f1e4ca6
parent 6157 244e739e05e9
child 6159 d4e463e0c56c
class: Font changed: #onDevice:ifAbsent: do not crash when encoding is nil (encoding '*' in FontPanel is selected)
Font.st
--- a/Font.st	Wed Nov 20 20:08:19 2013 +0100
+++ b/Font.st	Fri Nov 22 12:02:32 2013 +0100
@@ -424,7 +424,7 @@
                 style:style 
                 size:(sizeUnit == #px ifTrue:[pixelSize] ifFalse:[size])  
                 sizeUnit:sizeUnit  
-                encoding:encoding.
+                encoding:encoding ? '*'.
         id isNil ifTrue:[
             "oops did not work - (device has no such font)"
 
@@ -1288,11 +1288,11 @@
 !Font class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/Font.st,v 1.133 2013-07-26 15:53:54 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/Font.st,v 1.134 2013-11-22 11:02:32 stefan Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libview/Font.st,v 1.133 2013-07-26 15:53:54 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/Font.st,v 1.134 2013-11-22 11:02:32 stefan Exp $'
 ! !