added #userFriendlyName
authorClaus Gittinger <cg@exept.de>
Sat, 24 Feb 1996 17:29:41 +0100
changeset 453 a1541566a972
parent 452 f38d70ba97a2
child 454 b31d0a7e5530
added #userFriendlyName
Font.st
--- a/Font.st	Sat Feb 24 17:29:06 1996 +0100
+++ b/Font.st	Sat Feb 24 17:29:41 1996 +0100
@@ -480,6 +480,27 @@
     "
      (Font family:'helvetica' size:10) storeString
     "
+!
+
+userFriendlyName
+    |nm|
+
+    nm := family.
+    face notNil ifTrue:[
+        nm := nm , '-', face.
+    ].
+    style notNil ifTrue:[
+        nm := nm , '-', style.
+    ].
+    size notNil ifTrue:[
+        nm := nm , '-', size printString.
+    ].
+    ^ nm
+
+    "
+     View defaultFont userFriendlyName
+     Button defaultFont userFriendlyName
+    "
 ! !
 
 !Font methodsFor:'private'!
@@ -805,6 +826,6 @@
 !Font class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/Font.st,v 1.33 1996-02-23 16:17:59 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/Font.st,v 1.34 1996-02-24 16:29:41 cg Exp $'
 ! !
 Font initialize!