Font Problems with 3.6
Thomas A Petersen
tpeterse at csc.com
Thu Nov 6 19:54:39 UTC 2003
Yoshiki, et. Al,
I switched over to using the TTCFont method directly in 3.4 and
never looked back since then. I also added a version of the method
that lets me specify sizes with the font file names for easier scrpting.
Here's what it looks like.
newTextStyleFromTTFile: fileName sizes: sizeArray
"Create a new TextStyle from specified file name.
On certain versions of Windows, you can evaluate
following to get Arial font into the image. On other
platforms, wait and see someone implements the
support code for FontPlugin then we can start relying on
the generic font lookup mechanism.
self newTextStyleFromTTFile: 'C:\WINDOWS\Fonts\ARIAL.TTF' sizes: #(10
12 14 16 18 20 24 36)
"
| description |
description _ TTFontDescription addFromTTFile: fileName.
^ self newTextStyleFromTT: description sizes: sizeArray.
I checked my model image and you're right. about the
newTextStyleFromTTFile:
method is about directly called by the file list service. my mestake.
Sory for the confusion.
tap.
P.S.
I would have responded sooner, but the day job called me out of
town and away from a web connection for a few days.
More information about the Squeak-dev
mailing list
|