[squeak-dev] Font handling

karl ramberg karlramberg at gmail.com
Thu Apr 30 12:29:32 UTC 2015


Hi,
the current font handling could need a refactoring/ cleanup.
Emphasis of a font are stored in different places and that makes it
inconsistent and very hard to interface.

As far as I can tell should the emphasis info be stored as a text attribute.
But it seems that many tools set the emphasis directly in the font.

Here is a couple of examples from text in Workspaces:

{a TextEmphasis code: 1 . aTextFontReference(TTCFont(BitstreamVeraSansMono
24 Bold Oblique))}
This font has bold and italics set in the font (corresponds to value 3),
but the emphasis attribute is 1 which corresponds to bold.

{a TextFontReference(a StrikeFont(Accumon10 12))}
Here is also emphasis set in the font and no emphasis attribute is present
at all.


Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20150430/9e30b40d/attachment.htm


More information about the Squeak-dev mailing list