All:
The single most troubling problem in Squeak is the lack of real font support. I've just finished a large, packaged program and had to make do with NewYork, and images of large characters in a font cut from Illustrator and pasted into Graphic Converter, then twiddled, and then saved as GIFs, in three large sizes, for about 30 characters each, then read into the program and then laid out by code I wrote. (There are other solutions; I disliked this one the least.)
With real font support I could address the font directly.
I know one issue is portability and that strike fonts move readily between platforms.
Maybe there should be some way to:
* Query the current platform for fonts with certain characteristics. (Answer all serif, answer all monospace, answer all bold Courier, etc. X-Windows has a mechanism for doing such searches that might be useful to look at.)
* Specify that a certain font is wanted; it then acts like a built-in font.
* Squeak then asks the platform to draw the characters.
There are issues wrt moving an image to a new platform, but I think they can be handled so long as 'Squeak itself' uses built-in, portable fonts.
Maybe I'm all wet here, with a quickly proposed solution that might not work. Regardless, there needs to be SOME solution to the Squeak font problem.
The current font support sucks. The TT converter doesn't work on a Mac, it does work on Windoze but only at 32 point and above. It doesn't fix the problem.
One cannot claim to have the worlds greatest multimedia content builder, then admit to having only three fonts with fixed sizes.
Dave
Chris, thanks for reminding me that I've been going to complain too.
Dave,
Thanks for the complaint. Perhaps to get started, attached is something that might be of tremendous help for at least the Win32 people. The changes (and the plugin) allow you to import any font you have on your system into Squeak (and have it there as StrikeFont). All you have to do is to evaluate:
HostFont textStyleFromUser.
choose the font you'd like to import and get it. But be warned: The imported fonts blow up your image... they tend to get large since a variety of font sizes is imported. The usual disclaimers apply (blabla, mumble mumble, may not work, may not look right, etc. etc. etc.)
Cheers, - Andreas
-----Original Message----- From: squeak-dev-admin@lists.squeakfoundation.org [mailto:squeak-dev-admin@lists.squeakfoundation.org]On Behalf Of David N. Smith (IBM) Sent: Saturday, September 29, 2001 1:02 PM To: squeak-dev@lists.squeakfoundation.org Subject: Font Support
All:
The single most troubling problem in Squeak is the lack of real font support. I've just finished a large, packaged program and had to make do with NewYork, and images of large characters in a font cut from Illustrator and pasted into Graphic Converter, then twiddled, and then saved as GIFs, in three large sizes, for about 30 characters each, then read into the program and then laid out by code I wrote. (There are other solutions; I disliked this one the least.)
With real font support I could address the font directly.
I know one issue is portability and that strike fonts move readily between platforms.
Maybe there should be some way to:
- Query the current platform for fonts with certain
characteristics. (Answer all serif, answer all monospace, answer all bold Courier, etc. X-Windows has a mechanism for doing such searches that might be useful to look at.)
- Specify that a certain font is wanted; it then acts like a
built-in font.
- Squeak then asks the platform to draw the characters.
There are issues wrt moving an image to a new platform, but I think they can be handled so long as 'Squeak itself' uses built-in, portable fonts.
Maybe I'm all wet here, with a quickly proposed solution that might not work. Regardless, there needs to be SOME solution to the Squeak font problem.
The current font support sucks. The TT converter doesn't work on a Mac, it does work on Windoze but only at 32 point and above. It doesn't fix the problem.
One cannot claim to have the worlds greatest multimedia content builder, then admit to having only three fonts with fixed sizes.
Dave
Chris, thanks for reminding me that I've been going to complain too.
Andreas,
what a great changeset. At last there is an easy way to import standard fonts... Thanks many, many times.
I noticed that the carriage return character (13) is displayed as a box so I tried to redefine it (along with character "_" and "^").
I set Arial to be the default Font and then did
(TextStyle default fontAt: 2) edit: (13 asCharacter)
Here the "2" selects a certain size of the font. That did not work in Squeak3.1a-4332 since the message pixelValueForDepth: aColor is not understood by Form instances.
It seems that Form>>pixelValueFor: aColor does exactly what is required so I provided it under the above name as well. Perhaps it is better to change the caller so that it calls the existing method?
Anyway, after fixing this the above code (e.g., "... edit: $_") allows one to change any character one does not like.
Thanks again,
Thomas
-- Dr. Thomas Kuehne +49 178 4314387, http://www-agce.informatik.uni-kl.de/~kuehne Experts are people who successfully calibrated their intuition. -- TK
Hi Andreas,
Thanks for the SoundPlugin. It works (almost ) like a charm for Squeak-D3D and not at all for SqM (I hope it's just another property getter incident ;-)
I chose to load 'Times New Roman' and somehow I got extra little vertical rectangles everywhere this font is used. (Update #4347 - Squeak-D3D - Win2K-Pro)
Cheers,
PhiHo.
----- Original Message ----- From: "Andreas Raab" Andreas.Raab@gmx.de To: squeak-dev@lists.squeakfoundation.org Sent: Saturday, September 29, 2001 5:55 PM Subject: [ENH][Win32]RE: Font Support
Dave,
Thanks for the complaint. Perhaps to get started, attached is something
that
might be of tremendous help for at least the Win32 people. The changes
(and
the plugin) allow you to import any font you have on your system into
Squeak
(and have it there as StrikeFont). All you have to do is to evaluate:
HostFont textStyleFromUser.
choose the font you'd like to import and get it. But be warned: The
imported
fonts blow up your image... they tend to get large since a variety of font sizes is imported. The usual disclaimers apply (blabla, mumble mumble, may not work, may not look right, etc. etc. etc.)
Cheers,
- Andreas
-----Original Message----- From: squeak-dev-admin@lists.squeakfoundation.org [mailto:squeak-dev-admin@lists.squeakfoundation.org]On Behalf Of David N. Smith (IBM) Sent: Saturday, September 29, 2001 1:02 PM To: squeak-dev@lists.squeakfoundation.org Subject: Font Support
All:
The single most troubling problem in Squeak is the lack of real font support. I've just finished a large, packaged program and had to make do with NewYork, and images of large characters in a font cut from Illustrator and pasted into Graphic Converter, then twiddled, and then saved as GIFs, in three large sizes, for about 30 characters each, then read into the program and then laid out by code I wrote. (There are other solutions; I disliked this one the least.)
With real font support I could address the font directly.
I know one issue is portability and that strike fonts move readily between platforms.
Maybe there should be some way to:
- Query the current platform for fonts with certain
characteristics. (Answer all serif, answer all monospace, answer all bold Courier, etc. X-Windows has a mechanism for doing such searches that might be useful to look at.)
- Specify that a certain font is wanted; it then acts like a
built-in font.
- Squeak then asks the platform to draw the characters.
There are issues wrt moving an image to a new platform, but I think they can be handled so long as 'Squeak itself' uses built-in, portable fonts.
Maybe I'm all wet here, with a quickly proposed solution that might not work. Regardless, there needs to be SOME solution to the Squeak font problem.
The current font support sucks. The TT converter doesn't work on a Mac, it does work on Windoze but only at 32 point and above. It doesn't fix the problem.
One cannot claim to have the worlds greatest multimedia content builder, then admit to having only three fonts with fixed sizes.
Dave
Chris, thanks for reminding me that I've been going to complain too.
Hi Andreas,
Thanks for the SoundPlugin. It works (almost ) like a charm for Squeak-D3D and not at all for SqM (I hope it's just another property getter incident ;-)
I chose to load 'Times New Roman' and somehow I got extra little vertical rectangles everywhere this font is used. (Update #4347 - Squeak-D3D - Win2K-Pro)
Cheers,
PhiHo.
----- Original Message ----- From: "Andreas Raab" Andreas.Raab@gmx.de To: squeak-dev@lists.squeakfoundation.org Sent: Saturday, September 29, 2001 5:55 PM Subject: [ENH][Win32]RE: Font Support
Dave,
Thanks for the complaint. Perhaps to get started, attached is something
that
might be of tremendous help for at least the Win32 people. The changes
(and
the plugin) allow you to import any font you have on your system into
Squeak
(and have it there as StrikeFont). All you have to do is to evaluate:
HostFont textStyleFromUser.
choose the font you'd like to import and get it. But be warned: The
imported
fonts blow up your image... they tend to get large since a variety of font sizes is imported. The usual disclaimers apply (blabla, mumble mumble, may not work, may not look right, etc. etc. etc.)
Cheers,
- Andreas
-----Original Message----- From: squeak-dev-admin@lists.squeakfoundation.org [mailto:squeak-dev-admin@lists.squeakfoundation.org]On Behalf Of David N. Smith (IBM) Sent: Saturday, September 29, 2001 1:02 PM To: squeak-dev@lists.squeakfoundation.org Subject: Font Support
All:
The single most troubling problem in Squeak is the lack of real font support. I've just finished a large, packaged program and had to make do with NewYork, and images of large characters in a font cut from Illustrator and pasted into Graphic Converter, then twiddled, and then saved as GIFs, in three large sizes, for about 30 characters each, then read into the program and then laid out by code I wrote. (There are other solutions; I disliked this one the least.)
With real font support I could address the font directly.
I know one issue is portability and that strike fonts move readily between platforms.
Maybe there should be some way to:
- Query the current platform for fonts with certain
characteristics. (Answer all serif, answer all monospace, answer all bold Courier, etc. X-Windows has a mechanism for doing such searches that might be useful to look at.)
- Specify that a certain font is wanted; it then acts like a
built-in font.
- Squeak then asks the platform to draw the characters.
There are issues wrt moving an image to a new platform, but I think they can be handled so long as 'Squeak itself' uses built-in, portable fonts.
Maybe I'm all wet here, with a quickly proposed solution that might not work. Regardless, there needs to be SOME solution to the Squeak font problem.
The current font support sucks. The TT converter doesn't work on a Mac, it does work on Windoze but only at 32 point and above. It doesn't fix the problem.
One cannot claim to have the worlds greatest multimedia content builder, then admit to having only three fonts with fixed sizes.
Dave
Chris, thanks for reminding me that I've been going to complain too.
One cannot claim to have the worlds greatest multimedia content builder,
then admit to having only three > fonts with fixed sizes.
Besides, looking ahead, shouldn't Structure Audio and MPEG4 (DivX ?) deserve attentions too ?
This isn't a complaint though. Just day dreaming ;-)
Cheers,
PhiHo
----- Original Message ----- From: "David N. Smith (IBM)" dnsmith@watson.ibm.com To: squeak-dev@lists.squeakfoundation.org Sent: Saturday, September 29, 2001 4:02 PM Subject: Font Support
All:
The single most troubling problem in Squeak is the lack of real font
support. I've just finished a large, packaged program and had to make do with NewYork, and images of large characters in a font cut from Illustrator and pasted into Graphic Converter, then twiddled, and then saved as GIFs, in three large sizes, for about 30 characters each, then read into the program and then laid out by code I wrote. (There are other solutions; I disliked this one the least.)
With real font support I could address the font directly.
I know one issue is portability and that strike fonts move readily between
platforms.
Maybe there should be some way to:
- Query the current platform for fonts with certain characteristics.
(Answer all serif, answer all monospace, answer all bold Courier, etc. X-Windows has a mechanism for doing such searches that might be useful to look at.)
- Specify that a certain font is wanted; it then acts like a built-in
font.
- Squeak then asks the platform to draw the characters.
There are issues wrt moving an image to a new platform, but I think they
can be handled so long as 'Squeak itself' uses built-in, portable fonts.
Maybe I'm all wet here, with a quickly proposed solution that might not
work. Regardless, there needs to be SOME solution to the Squeak font problem.
The current font support sucks. The TT converter doesn't work on a Mac, it
does work on Windoze but only at 32 point and above. It doesn't fix the problem.
One cannot claim to have the worlds greatest multimedia content builder,
then admit to having only three fonts with fixed sizes.
Dave
Chris, thanks for reminding me that I've been going to complain too.
Query the current platform for fonts with certain characteristics. (Answer all serif, answer all monospace, answer all bold Courier, etc. X-Windows has a mechanism for doing such searches that might be useful to look at.)
Specify that a certain font is wanted; it then acts like a built-in font.
Squeak then asks the platform to draw the characters.
There are issues wrt moving an image to a new platform, but I think they can be handled so long as 'Squeak itself' uses built-in, portable fonts.
The main image is lagging behind on font support -- there's more you can do if you are willing to load extensions. Check out this page:
http://minnow.cc.gatech.edu/squeak/696
Among other things, there are:
1. Ways to convert true-type fonts to strike fonts, which can then be deployed within an image.
2. Ways to use true-type fonts directly, by use of a VM plugin that calls a widely-ported C library.
As far as host-based fonts go, please let's not use anything that's platform-dependent. Andreas's suggestion of *importing* fonts from MSWindows nicely avoids this, for example. Any scheme that requires the platform to draw text is almost certain to be unportable.
-Lex
PS -- at some point, we really should beef up the standard image with some more free fonts........
"Lex Spoon" lex@cc.gatech.edu is widely believed to have written:
PS -- at some point, we really should beef up the standard image with some more free fonts........
Duane Maxwell provided code and licensed fonts to do just this some time ago. See http://swiki.gsug.org:8080/sqfixes/1236.html
tim
Unfortunately, that's not the correct changeset - that particular one was just a small number of bug fixes and enhancements/utilities for the class StrikeFont.
I never posted the "new fonts" changeset to the list - it was intended that it go into the base image itself, though SqC has chosen not to include it. I think Bob Arning posted a project on BSS that does the trick.
Since those fonts are complete, they do include the characters that folks have been recently missing in the builtin fonts.
-- Duane
----- Original Message ----- From: "Tim Rowledge" tim@sumeru.stanford.edu To: squeak-dev@lists.squeakfoundation.org Sent: Monday, October 08, 2001 5:08 PM Subject: Re: Font Support
"Lex Spoon" lex@cc.gatech.edu is widely believed to have written:
PS -- at some point, we really should beef up the standard image with some more free fonts........
Duane Maxwell provided code and licensed fonts to do just this some time ago. See http://swiki.gsug.org:8080/sqfixes/1236.html
tim
-- Tim Rowledge, tim@sumeru.stanford.edu, http://sumeru.stanford.edu/tim How do I set my laser printer on stun?
squeak-dev@lists.squeakfoundation.org