author | ca |
Wed, 04 Jun 1997 13:16:58 +0200 | |
changeset 1740 | 804c5b51ec29 |
parent 1618 | 044de84f0d5f |
child 1760 | ccd221469891 |
permissions | -rw-r--r-- |
52 | 1 |
" |
2 |
COPYRIGHT (c) 1994 by Claus Gittinger |
|
89 | 3 |
All Rights Reserved |
52 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
Object subclass:#FontDescription |
|
1275 | 14 |
instanceVariableNames:'family face style size encoding manufacturer name flags masks |
15 |
pixelSize' |
|
1265
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
16 |
classVariableNames:'BoldnessMask FixedFlag ItalicFlag OutlineFlag SerifFlag |
1275 | 17 |
ShadowFlag StrikeoutFlag UnderlineFlag' |
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
18 |
poolDictionaries:'' |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
19 |
category:'Graphics-Support' |
52 | 20 |
! |
21 |
||
1275 | 22 |
!FontDescription class methodsFor:'documentation'! |
52 | 23 |
|
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 1994 by Claus Gittinger |
|
89 | 27 |
All Rights Reserved |
52 | 28 |
|
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
! |
|
37 |
||
38 |
documentation |
|
39 |
" |
|
40 |
FontDescription is just a place-holder for scanned font names. |
|
41 |
||
611 | 42 |
[Instance variables:] |
43 |
family <String> the fonts family ('courier', 'helvetica' etc) |
|
44 |
face <String> the fonts face ('bold', 'medium' etc) |
|
45 |
style <String> the fonts style ('roman', 'italic', 'oblique') |
|
46 |
size <String> the fonts size (not in pixels) |
|
47 |
encoding <Symbol> the fonts encoding (usually #iso8859) |
|
48 |
||
1265
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
49 |
manufacturer <nil|String|Array> |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
50 |
the fonts origin - if known |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
51 |
name <nil|String|Array> |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
52 |
the platform specific name |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
53 |
|
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
54 |
flags <SmallInteger> holds serif/italic etc. as flag bits |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
55 |
masks <SmallInteger> currently dummy; to allow ST-80 compatible subclassing |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
56 |
pixelSize <SmallInteger> currently dummy; to allow ST-80 compatible subclassing |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
57 |
|
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
58 |
[class variables:] |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
59 |
BoldnessMask currently dummy; to allow ST-80 compatible subclassing |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
60 |
FixedFlag currently dummy; to allow ST-80 compatible subclassing |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
61 |
ItalicFlag currently dummy; to allow ST-80 compatible subclassing |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
62 |
OutlineFlag currently dummy; to allow ST-80 compatible subclassing |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
63 |
SerifFlag currently dummy; to allow ST-80 compatible subclassing |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
64 |
ShadowFlag currently dummy; to allow ST-80 compatible subclassing |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
65 |
StrikeoutFlag currently dummy; to allow ST-80 compatible subclassing |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
66 |
UnderlineFlag currently dummy; to allow ST-80 compatible subclassing |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
67 |
|
611 | 68 |
[author:] |
69 |
Claus Gittinger |
|
629 | 70 |
|
71 |
[see also:] |
|
72 |
Font |
|
73 |
FontPanel |
|
74 |
GraphicsContext |
|
75 |
( introduction to view programming :html: programming/viewintro.html#FONTS ) |
|
52 | 76 |
" |
77 |
! ! |
|
78 |
||
1265
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
79 |
!FontDescription class methodsFor:'initialization'! |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
80 |
|
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
81 |
initialize |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
82 |
"initialize class variables" |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
83 |
|
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
84 |
BoldnessMask := 2r0000000111. "/ allows for 8 boldnesses to be encoded |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
85 |
FixedFlag := 2r0000001000. |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
86 |
ItalicFlag := 2r0000010000. |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
87 |
OutlineFlag := 2r0000100000. |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
88 |
SerifFlag := 2r0001000000. |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
89 |
ShadowFlag := 2r0010000000. |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
90 |
StrikeoutFlag := 2r0100000000. |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
91 |
UnderlineFlag := 2r1000000000. |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
92 |
! ! |
c8030e99f941
added ST-80 compatible instVars (currently ignored, though)
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
93 |
|
1275 | 94 |
!FontDescription class methodsFor:'instance creation'! |
52 | 95 |
|
153 | 96 |
family:familyString |
97 |
"returns a font for given family and default (12pt) size |
|
98 |
with unspecified encoding. |
|
629 | 99 |
The new fonts face defaults `medium', its style to `roman'. |
153 | 100 |
The returned font is not associated to a specific device" |
101 |
||
102 |
^ self family:familyString |
|
629 | 103 |
face:'medium' |
104 |
style:'roman' |
|
105 |
size:12 |
|
106 |
encoding:nil |
|
153 | 107 |
|
108 |
" |
|
109 |
Font family:'helvetica' |
|
110 |
Font family:'courier' |
|
111 |
" |
|
629 | 112 |
|
113 |
"Modified: 30.4.1996 / 17:20:44 / cg" |
|
153 | 114 |
! |
115 |
||
109 | 116 |
family:familyString face:faceString size:sizeNum |
117 |
"returns a font for given family and size with unspecified encoding. |
|
629 | 118 |
The new fonts style defaults to `roman'. |
109 | 119 |
The returned font is not associated to a specific device" |
120 |
||
121 |
^ self family:familyString |
|
629 | 122 |
face:faceString |
123 |
style:'roman' |
|
124 |
size:sizeNum |
|
125 |
encoding:nil |
|
109 | 126 |
|
127 |
" |
|
128 |
Font family:'helvetica' face:'medium' size:10 |
|
129 |
Font family:'helvetica' face:'bold' size:10 |
|
130 |
Font family:'courier' face:'bold' size:10 |
|
131 |
" |
|
629 | 132 |
|
133 |
"Modified: 30.4.1996 / 17:21:07 / cg" |
|
109 | 134 |
! |
135 |
||
136 |
family:familyString face:faceString style:styleString size:sizeNum |
|
137 |
"returns a font for given family, face, style and size with |
|
138 |
unspecified encoding. |
|
139 |
The returned font is not associated to a specific device" |
|
140 |
||
141 |
^ self family:familyString |
|
142 |
face:faceString |
|
143 |
style:styleString |
|
144 |
size:sizeNum |
|
145 |
encoding:nil |
|
146 |
||
147 |
" |
|
148 |
Font family:'helvetica' face:'medium' style:'roman' size:10 |
|
149 |
Font family:'helvetica' face:'medium' style:'italic' size:10 |
|
150 |
Font family:'helvetica' face:'bold' style:'roman' size:10 |
|
151 |
Font family:'courier' face:'bold' style:'italic' size:10 |
|
152 |
" |
|
153 |
! |
|
154 |
||
52 | 155 |
family:familyString face:faceString style:styleString size:sizeNum encoding:encodingSym |
576 | 156 |
"returns a font for given family, face, style, size and |
157 |
the specified encoding. |
|
158 |
The returned font is not associated to a specific device" |
|
159 |
||
52 | 160 |
^ self new |
576 | 161 |
family:familyString |
162 |
face:faceString |
|
163 |
style:styleString |
|
164 |
size:sizeNum |
|
165 |
encoding:encodingSym |
|
166 |
||
167 |
"Modified: 20.4.1996 / 23:19:04 / cg" |
|
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
168 |
! |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
169 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
170 |
family:familyString size:sizeNum |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
171 |
"returns a font for given family and size with unspecified encoding. |
629 | 172 |
The new fonts face defaults to `medium', its style to `roman'. |
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
173 |
The returned font is not associated to a specific device" |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
174 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
175 |
^ self family:familyString |
629 | 176 |
face:'medium' |
177 |
style:'roman' |
|
178 |
size:sizeNum |
|
179 |
encoding:nil |
|
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
180 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
181 |
" |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
182 |
Font family:'helvetica' size:10 |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
183 |
Font family:'courier' size:10 |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
184 |
" |
629 | 185 |
|
186 |
"Modified: 30.4.1996 / 17:21:40 / cg" |
|
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
187 |
! |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
188 |
|
1071 | 189 |
family:familyString style:aStyle size:sizeNum |
190 |
"returns a font for given family and size with unspecified encoding. |
|
191 |
The new fonts face defaults to `medium', its style to `roman'. |
|
192 |
The returned font is not associated to a specific device" |
|
193 |
||
194 |
^ self family:familyString |
|
195 |
face:'medium' |
|
196 |
style:aStyle |
|
197 |
size:sizeNum |
|
198 |
encoding:nil |
|
199 |
||
200 |
" |
|
201 |
Font family:'helvetica' style:#roman size:48 |
|
202 |
Font family:'courier' style:#roman size:10 |
|
203 |
" |
|
204 |
||
205 |
"Modified: 30.4.1996 / 17:21:40 / cg" |
|
206 |
"Created: 8.10.1996 / 18:33:55 / cg" |
|
207 |
! |
|
208 |
||
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
209 |
name:aFontName |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
210 |
"returns a font with the given explicit name. |
629 | 211 |
WARNING: |
212 |
You shuld not use explicit naming, since font names vary |
|
213 |
with operatingSystems, devices and architecture. |
|
214 |
||
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
215 |
This interface is provided for special purposes only. |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
216 |
On X, the name given should be according the X fontname conventions; |
629 | 217 |
i.e. something like: '-*-times-bold-r-normal-*-*-240-*-*-*-*-iso8859-1'. |
218 |
||
219 |
On other devices, font naming may be completely different." |
|
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
220 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
221 |
^ self family:aFontName |
629 | 222 |
face:nil |
223 |
style:nil |
|
224 |
size:nil |
|
225 |
encoding:nil |
|
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
226 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
227 |
" |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
228 |
Font name:'-*-times-bold-r-normal-*-*-240-*-*-*-*-iso8859-1' |
629 | 229 |
Font name:'6x10' |
230 |
Font name:'k14' |
|
231 |
((Font name:'k14') on:Display) encoding |
|
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
232 |
" |
629 | 233 |
|
234 |
"Modified: 30.4.1996 / 17:23:09 / cg" |
|
52 | 235 |
! ! |
236 |
||
1277 | 237 |
!FontDescription methodsFor:'ST-80 compatibility'! |
238 |
||
239 |
boldness:aNumber |
|
240 |
"added for ST-80 compatibility; actually ignored currently" |
|
241 |
||
242 |
|val| |
|
243 |
||
244 |
flags isNil ifTrue:[ |
|
245 |
flags := masks := 0 |
|
246 |
]. |
|
247 |
||
248 |
"/ scale from 0..1 to 0..BoldnessMask |
|
249 |
val := (aNumber max:0.0) min:1.0. |
|
250 |
val := (BoldnessMask * val) rounded. |
|
251 |
||
252 |
flags := flags bitOr:val. |
|
253 |
masks := masks bitOr:BoldnessMask |
|
254 |
||
255 |
"Created: 25.1.1997 / 03:20:05 / cg" |
|
256 |
"Modified: 25.1.1997 / 03:20:47 / cg" |
|
257 |
! |
|
258 |
||
259 |
color:aColor |
|
260 |
"added for ST-80 compatibility; actually ignored currently" |
|
261 |
||
262 |
"Created: 25.1.1997 / 03:21:28 / cg" |
|
263 |
! |
|
264 |
||
265 |
fixedWidth:aBoolean |
|
266 |
"added for ST-80 compatibility; actually ignored currently" |
|
267 |
||
268 |
flags isNil ifTrue:[ |
|
269 |
flags := masks := 0 |
|
270 |
]. |
|
271 |
flags := flags bitOr:FixedFlag. |
|
272 |
masks := masks bitOr:FixedFlag |
|
273 |
||
274 |
"Created: 25.1.1997 / 03:14:06 / cg" |
|
275 |
"Modified: 25.1.1997 / 03:21:03 / cg" |
|
276 |
! |
|
277 |
||
278 |
italic:aBoolean |
|
279 |
"added for ST-80 compatibility; actually ignored currently" |
|
280 |
||
281 |
flags isNil ifTrue:[ |
|
282 |
flags := masks := 0 |
|
283 |
]. |
|
284 |
flags := flags bitOr:ItalicFlag. |
|
285 |
masks := masks bitOr:ItalicFlag |
|
286 |
||
287 |
"Created: 25.1.1997 / 03:15:37 / cg" |
|
288 |
"Modified: 25.1.1997 / 03:20:55 / cg" |
|
289 |
! |
|
290 |
||
291 |
pixelSize:aNumber |
|
292 |
"added for ST-80 compatibility; actually ignored currently" |
|
293 |
||
294 |
pixelSize := aNumber |
|
295 |
||
296 |
"Modified: 25.1.1997 / 03:20:47 / cg" |
|
297 |
"Created: 25.1.1997 / 03:21:47 / cg" |
|
298 |
! |
|
299 |
||
300 |
serif:aBoolean |
|
301 |
"added for ST-80 compatibility; actually ignored currently" |
|
302 |
||
303 |
flags isNil ifTrue:[ |
|
304 |
flags := masks := 0 |
|
305 |
]. |
|
306 |
flags := flags bitOr:SerifFlag. |
|
307 |
masks := masks bitOr:SerifFlag |
|
308 |
||
309 |
"Created: 25.1.1997 / 03:15:17 / cg" |
|
310 |
"Modified: 25.1.1997 / 03:20:59 / cg" |
|
311 |
! ! |
|
312 |
||
52 | 313 |
!FontDescription methodsFor:'accessing'! |
314 |
||
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
315 |
encoding |
575 | 316 |
"return the fonts encoding, as a symbol |
456 | 317 |
such as #'iso8859', #'jis0208.1983' or #ascii. |
318 |
If the fonts encoding is not known, return nil; |
|
319 |
You should assume ascii-encoding then." |
|
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
320 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
321 |
^ encoding |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
322 |
|
575 | 323 |
"Modified: 20.4.1996 / 23:14:36 / cg" |
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
324 |
! |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
325 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
326 |
face |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
327 |
"return the face, a string" |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
328 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
329 |
^ face |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
330 |
! |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
331 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
332 |
family |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
333 |
"return the family, a string" |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
334 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
335 |
^ family |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
336 |
! |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
337 |
|
1277 | 338 |
family:aString |
339 |
"set the family, a string" |
|
340 |
||
341 |
family := aString |
|
342 |
||
343 |
"Created: 25.1.1997 / 03:12:12 / cg" |
|
344 |
! |
|
345 |
||
89 | 346 |
family:familyString face:faceString style:styleString size:sizeNum encoding:encodingString |
576 | 347 |
"set the instance values" |
348 |
||
89 | 349 |
family := familyString asSymbol. |
229
099543e5d779
handle empty family/style/encoding strings
Claus Gittinger <cg@exept.de>
parents:
219
diff
changeset
|
350 |
(faceString notNil and:[faceString notEmpty]) ifTrue:[ |
576 | 351 |
face := faceString asSymbol. |
89 | 352 |
]. |
229
099543e5d779
handle empty family/style/encoding strings
Claus Gittinger <cg@exept.de>
parents:
219
diff
changeset
|
353 |
(styleString notNil and:[styleString notEmpty]) ifTrue:[ |
576 | 354 |
style := styleString asSymbol. |
89 | 355 |
]. |
52 | 356 |
size := sizeNum. |
229
099543e5d779
handle empty family/style/encoding strings
Claus Gittinger <cg@exept.de>
parents:
219
diff
changeset
|
357 |
(encodingString notNil and:[encodingString notEmpty]) ifTrue:[ |
576 | 358 |
encoding := encodingString asSymbol. |
89 | 359 |
] |
229
099543e5d779
handle empty family/style/encoding strings
Claus Gittinger <cg@exept.de>
parents:
219
diff
changeset
|
360 |
|
576 | 361 |
"Modified: 20.4.1996 / 23:19:25 / cg" |
52 | 362 |
! |
363 |
||
1277 | 364 |
manufacturer |
365 |
"return the value of the instance variable 'manufacturer' (automatically generated)" |
|
366 |
||
367 |
^ manufacturer |
|
368 |
||
369 |
"Created: 25.1.1997 / 03:12:43 / cg" |
|
370 |
! |
|
371 |
||
372 |
manufacturer:something |
|
373 |
"set the value of the instance variable 'manufacturer' (automatically generated)" |
|
374 |
||
375 |
manufacturer := something. |
|
376 |
||
377 |
"Created: 25.1.1997 / 03:12:43 / cg" |
|
378 |
! |
|
379 |
||
52 | 380 |
size |
381 |
"return the size, a number" |
|
382 |
||
383 |
^ size |
|
384 |
! |
|
385 |
||
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
386 |
style |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
387 |
"return the style, a string" |
109 | 388 |
|
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
389 |
^ style |
109 | 390 |
! ! |
391 |
||
392 |
!FontDescription methodsFor:'comparing'! |
|
393 |
||
394 |
= aFont |
|
395 |
"two fonts are considered equal, if the font-name components are; |
|
396 |
independent of the device, the font is on" |
|
397 |
||
398 |
(aFont species == self species) ifTrue:[ |
|
399 |
(size == aFont size) ifTrue:[ |
|
400 |
(family = aFont family) ifTrue:[ |
|
401 |
(face = aFont face) ifTrue:[ |
|
402 |
(style = aFont style) ifTrue:[ |
|
403 |
(encoding == aFont encoding) ifTrue:[ |
|
404 |
^ true |
|
405 |
] |
|
406 |
] |
|
407 |
] |
|
408 |
] |
|
409 |
] |
|
410 |
]. |
|
411 |
^ false |
|
412 |
! ! |
|
413 |
||
414 |
!FontDescription methodsFor:'converting'! |
|
415 |
||
416 |
asBold |
|
417 |
"return the bold font corresponding to the receiver" |
|
418 |
||
419 |
^ self class |
|
420 |
family:family |
|
421 |
face:'bold' |
|
422 |
style:style |
|
423 |
size:size |
|
424 |
encoding:encoding |
|
425 |
! |
|
426 |
||
427 |
asItalic |
|
428 |
"return the italic font corresponding to the receiver" |
|
429 |
||
430 |
^ self class |
|
431 |
family:family |
|
432 |
face:face |
|
433 |
style:'oblique' |
|
434 |
size:size |
|
435 |
encoding:encoding |
|
436 |
! |
|
437 |
||
1740 | 438 |
fromLiteralArrayEncoding:encoding |
439 |
"read my contents from a aLiteralEncodedArray" |
|
440 |
||
441 |
|items groups values| |
|
442 |
||
443 |
family := encoding at:2. |
|
444 |
face := encoding at:3. |
|
445 |
style := encoding at:4. |
|
446 |
size := encoding at:5. |
|
447 |
||
448 |
||
449 |
||
450 |
! |
|
451 |
||
452 |
literalArrayEncoding |
|
453 |
"return myself encoded as a literal array" |
|
454 |
||
455 |
^ Array |
|
456 |
with:self class name asSymbol |
|
457 |
with:family |
|
458 |
with:face |
|
459 |
with:style |
|
460 |
with:size |
|
461 |
||
462 |
! |
|
463 |
||
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
464 |
on:aDevice |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
465 |
"given the receiver, return a device Font" |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
466 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
467 |
^ (Font |
478
91a8a5889bf2
oops - always returned a bold font
Claus Gittinger <cg@exept.de>
parents:
456
diff
changeset
|
468 |
family:family |
91a8a5889bf2
oops - always returned a bold font
Claus Gittinger <cg@exept.de>
parents:
456
diff
changeset
|
469 |
face:face |
91a8a5889bf2
oops - always returned a bold font
Claus Gittinger <cg@exept.de>
parents:
456
diff
changeset
|
470 |
style:style |
91a8a5889bf2
oops - always returned a bold font
Claus Gittinger <cg@exept.de>
parents:
456
diff
changeset
|
471 |
size:size |
91a8a5889bf2
oops - always returned a bold font
Claus Gittinger <cg@exept.de>
parents:
456
diff
changeset
|
472 |
encoding:encoding) on:aDevice |
91a8a5889bf2
oops - always returned a bold font
Claus Gittinger <cg@exept.de>
parents:
456
diff
changeset
|
473 |
|
91a8a5889bf2
oops - always returned a bold font
Claus Gittinger <cg@exept.de>
parents:
456
diff
changeset
|
474 |
"Modified: 29.2.1996 / 04:45:11 / cg" |
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
475 |
! |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
476 |
|
1497
697ac9b15962
added #onDevice: for protocol completeness.
Claus Gittinger <cg@exept.de>
parents:
1277
diff
changeset
|
477 |
onDevice:aDevice |
697ac9b15962
added #onDevice: for protocol completeness.
Claus Gittinger <cg@exept.de>
parents:
1277
diff
changeset
|
478 |
"given the receiver, return a device Font" |
697ac9b15962
added #onDevice: for protocol completeness.
Claus Gittinger <cg@exept.de>
parents:
1277
diff
changeset
|
479 |
|
697ac9b15962
added #onDevice: for protocol completeness.
Claus Gittinger <cg@exept.de>
parents:
1277
diff
changeset
|
480 |
^ self on:aDevice |
697ac9b15962
added #onDevice: for protocol completeness.
Claus Gittinger <cg@exept.de>
parents:
1277
diff
changeset
|
481 |
|
697ac9b15962
added #onDevice: for protocol completeness.
Claus Gittinger <cg@exept.de>
parents:
1277
diff
changeset
|
482 |
"Created: 28.3.1997 / 16:09:30 / cg" |
697ac9b15962
added #onDevice: for protocol completeness.
Claus Gittinger <cg@exept.de>
parents:
1277
diff
changeset
|
483 |
! |
697ac9b15962
added #onDevice: for protocol completeness.
Claus Gittinger <cg@exept.de>
parents:
1277
diff
changeset
|
484 |
|
109 | 485 |
size:newSize |
486 |
"return a font corresponding to the receiver, but with different size." |
|
487 |
||
488 |
^ self class |
|
489 |
family:family |
|
490 |
face:face |
|
491 |
style:style |
|
492 |
size:newSize |
|
493 |
encoding:encoding |
|
494 |
! ! |
|
495 |
||
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
496 |
!FontDescription methodsFor:'errors'! |
109 | 497 |
|
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
498 |
errorNoDevice |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
499 |
"a query was made for device-specific info" |
109 | 500 |
|
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
501 |
" |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
502 |
this happens, when you ask a font for its height or width, |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
503 |
ascent or any other dimension which depends on the device on |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
504 |
which the font is rendered, AND the receiver font is not (yet) |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
505 |
associated to a device. |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
506 |
You should always use |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
507 |
font := font on:someDevice |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
508 |
to get a device font, before asking for device specifics. |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
509 |
" |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
510 |
self error:'query device independent font for for device specific info' |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
511 |
! ! |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
512 |
|
1618 | 513 |
!FontDescription methodsFor:'printing & storing'! |
514 |
||
515 |
userFriendlyName |
|
516 |
"return a user-friendly printed representation of the receiver" |
|
517 |
||
518 |
|nm| |
|
519 |
||
520 |
nm := family. |
|
521 |
face notNil ifTrue:[ |
|
522 |
nm := nm , '-', face. |
|
523 |
]. |
|
524 |
style notNil ifTrue:[ |
|
525 |
nm := nm , '-', style. |
|
526 |
]. |
|
527 |
size notNil ifTrue:[ |
|
528 |
nm := nm , '-', size printString. |
|
529 |
]. |
|
530 |
encoding notNil ifTrue:[ |
|
531 |
nm := nm , '-', encoding . |
|
532 |
]. |
|
533 |
^ nm |
|
534 |
||
535 |
" |
|
536 |
View defaultFont userFriendlyName |
|
537 |
Button defaultFont userFriendlyName |
|
538 |
" |
|
539 |
||
540 |
"Modified: 20.4.1996 / 23:25:36 / cg" |
|
541 |
"Created: 19.4.1997 / 18:09:25 / cg" |
|
542 |
! ! |
|
543 |
||
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
544 |
!FontDescription methodsFor:'queries'! |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
545 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
546 |
bold |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
547 |
"return true, if the receiver is a bold font - |
1585 | 548 |
Added for st-80 compatibility." |
549 |
||
550 |
"/ Currently, this implementation is a dirty hack and will be changed soon. |
|
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
551 |
|
1275 | 552 |
^ face = 'bold' |
553 |
||
1585 | 554 |
"Modified: 11.4.1997 / 21:31:25 / cg" |
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
555 |
! |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
556 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
557 |
boldness |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
558 |
"return the boldness of the characters in this font 0 .. 1 - |
1275 | 559 |
Added for st-80 compatibility" |
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
560 |
|
1585 | 561 |
"/ Currently, this implementation is a dirty hack and will be changed soon. |
562 |
||
563 |
face = 'roman' ifTrue:[^ 0.5]. |
|
564 |
face = 'normal' ifTrue:[^ 0.5]. |
|
565 |
face = 'bold' ifTrue:[^ 0.75]. |
|
566 |
face = 'light' ifTrue:[^ 0.25]. |
|
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
567 |
^ 0.5 |
1275 | 568 |
|
1585 | 569 |
"Modified: 11.4.1997 / 21:31:31 / cg" |
1275 | 570 |
! |
571 |
||
572 |
color |
|
573 |
"return the default color in which this font is to be rendered. |
|
574 |
Added for st-80 compatibility. |
|
575 |
For now always black." |
|
576 |
||
577 |
^ Color black |
|
578 |
||
579 |
"Created: 25.1.1997 / 02:59:15 / cg" |
|
580 |
"Modified: 25.1.1997 / 03:02:14 / cg" |
|
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
581 |
! |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
582 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
583 |
fullName |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
584 |
^ nil |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
585 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
586 |
"Created: 23.2.1996 / 00:45:45 / cg" |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
587 |
! |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
588 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
589 |
italic |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
590 |
"return true if this is an italic font - |
1585 | 591 |
Added for st-80 compatibility" |
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
592 |
|
1585 | 593 |
"/ Currently, this implementation is a dirty hack and will be changed soon. |
594 |
||
595 |
style = 'italic' ifTrue:[^ true]. |
|
596 |
style = 'obligue' ifTrue:[^ true]. |
|
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
597 |
^ false |
1275 | 598 |
|
1585 | 599 |
"Modified: 11.4.1997 / 21:31:42 / cg" |
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
600 |
! |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
601 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
602 |
serif |
1275 | 603 |
"return true, if this font has serifs. |
1585 | 604 |
Added for st-80 compatibility" |
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
605 |
|
1585 | 606 |
"/ Currently, this implementation is a dirty hack and will be changed soon. |
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
607 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
608 |
family = 'Times' ifTrue:[^ true]. |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
609 |
family = 'times' ifTrue:[^ true]. |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
610 |
^ false. |
1275 | 611 |
|
1585 | 612 |
"Modified: 11.4.1997 / 21:31:51 / cg" |
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
613 |
! |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
614 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
615 |
species |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
616 |
^ Font |
1275 | 617 |
! |
618 |
||
619 |
underline |
|
620 |
"return true if this is an underlined font - |
|
621 |
Added for st-80 compatibility |
|
622 |
(always false here)" |
|
623 |
||
624 |
^ false |
|
625 |
||
626 |
"Created: 25.1.1997 / 02:58:30 / cg" |
|
627 |
"Modified: 25.1.1997 / 03:01:12 / cg" |
|
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
628 |
! ! |
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
629 |
|
456 | 630 |
!FontDescription methodsFor:'queries-encoding'! |
631 |
||
632 |
isASCII |
|
576 | 633 |
"return true, if the receivers encoding is |
634 |
compatible with ascii (i.e. its ascii or iso8859)" |
|
635 |
||
456 | 636 |
^ (encoding == #iso8859) or:[encoding == #ascii] |
637 |
||
638 |
"Created: 24.2.1996 / 22:47:30 / cg" |
|
576 | 639 |
"Modified: 20.4.1996 / 23:20:01 / cg" |
456 | 640 |
! |
641 |
||
642 |
isISO8859 |
|
576 | 643 |
"return true, if the receivers encoding is |
644 |
compatible with iso8859 (i.e. iso8859)" |
|
645 |
||
456 | 646 |
^ encoding == #iso8859 |
647 |
||
648 |
"Created: 24.2.1996 / 22:47:12 / cg" |
|
576 | 649 |
"Modified: 20.4.1996 / 23:20:13 / cg" |
456 | 650 |
! |
651 |
||
652 |
isJIS |
|
576 | 653 |
"return true, if the receivers encoding is |
654 |
compatible with jis (i.e. jisXXX)" |
|
655 |
||
456 | 656 |
^ (encoding startsWith:'jis') |
657 |
||
658 |
"Created: 24.2.1996 / 22:47:47 / cg" |
|
576 | 659 |
"Modified: 20.4.1996 / 23:20:30 / cg" |
456 | 660 |
! ! |
661 |
||
1275 | 662 |
!FontDescription class methodsFor:'documentation'! |
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
663 |
|
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
664 |
version |
1740 | 665 |
^ '$Header: /cvs/stx/stx/libview/FontDescription.st,v 1.22 1997-06-04 11:16:58 ca Exp $' |
437
a81ce3a8038b
return dummy default encoding & fullNames
Claus Gittinger <cg@exept.de>
parents:
229
diff
changeset
|
666 |
! ! |
1275 | 667 |
FontDescription initialize! |