Ship it with Squeak

Lawson English english at primenet.com
Sat Jul 1 17:23:25 UTC 2000


"Raab, Andreas" <Andreas.Raab at disney.com> said:


>> > So please let me repeat my question: Can you show one word
>> > written in font Comic12 and another word in font NewYork12
>> > in the same workspace in the same size?  Looking at the
>> > "Welcome to..." window, there should be a way, but AFAIK, you can't.
>
> It's quite possible - all you need is to classify all the fonts in the same
> text style. Not a good way to do it since some of the information that is
> supposedly the same for a text style are different in the fonts but
> possible. More generally, I'd like to see some of the information that is
> currently in the text style to be in the font itself so that all you need to
> fully specify the layout of some string is defined in the font. Then, you
> basically don't need any text style any longer (and besides - specifying the
> fonts through an index in the font array of a text style rather than an
> explicit point size and the appropriate attributes is pretty dangerous if
> you change the style these days).

Check out the GXTypography GXLayout shape-object from GX graphics for an
example of how to "do this right."

>
>> So, I *believe*, I sincerely *hope*, that it is now
>> established that there *is* a sufficently *rich* Rich Text Widget
>> for, at least, *some* purposes. I cannot say that it answers
>> to *all* purposes, but it's also pretty clear that *building* ones,
>> using a variety of techniques, is non-burdensome to various degreeds.
>
> Hm ... just wondering. Why is it that so many people cry for a Rich Text
> Widget?! Wouldn't a HTML spec serve the same purpose?! And we do have the
> formatter for it right in the system.


How is it for reading and writing RTF? And does HTML allow arbitrary point
sizes? What's the space consideration for RTF vs HTML storage?

>
>   - Andreas
>
> PS. Since we're talking about text here - the three things we really need
> for good text layout are a) fractional widths b) left/right side bearings
> and advance widths (for overhang and underhang characters) and c) kerning
> pairs (and possibly automatic detection of common ligatures). Anyone up to
> it?!
>
>


Again, check out the GXTypography GXLayout shape. Even avoiding
right-to-left, vertical, bidirectional, etc., issues, there's a lot more
needed for good, modern text-layout handling than what you've mentioned.


--
YOU have the right to select the Reform Party Presidential Nominee, which
doesn't have to be Pat Buchanan. Request a ballot BY Midnight, June 30.
<http://www.reasontovote.com>
Send your ballot-request via: FAX 515-472-2011 -mail won't get there in time
Oops. Too late.
-- 





More information about the Squeak-dev mailing list