Seeking help on Font Display

Mark Guzdial guzdial at cc.gatech.edu
Tue May 30 13:46:58 UTC 2000


Thanks for the code!  They all look fine -- as one would expect, 
since StringMorph and TextMorph work okay with them.  It's something 
in asDisplayText, I guess.

Mark

> >I built a font using BitFont from a publicly available font called
> >Ypatia whose contents are mostly Greek letters
> >(http://coweb.cc.gatech.edu:8888/cs2340/uploads/ypatia.zip).  It's
> >behaving oddly, and I'm not sure how to fix it.
> >
> >The problem is that this works:
> >('g' asParagraph textStyle: (TextStyle named: 'Ypatia')) display
> >But this displays nothing at all:
> >('G' asParagraph textStyle: (TextStyle named: 'Ypatia')) display
> >
> >All the capital letters are blank.  ' G ', however, works fine, as
> >does any text typed into a TextMorph or Workspace.  Swapping
> >'NewYork' or 'ComicBold' for 'Ypatia', also works.
> >
> >My suspicion is that I've screwed up the font definition somehow that
> >the bounds aren't being computed correctly, but I'm starting to get
> >lost trying to find and fix the bug.  Does anyone have any
> >suggestions or have had similar experiences?
>
>Mark -
>
>My suggestion is first to examine
>
>	(TextStyle named: 'Ypatia') defaultFont fontDisplay.
>
>If only one thing looks wrong, I would go after it with the various 
>widthOf:, edit:, etc. methods available.  I sure don't know what 
>caused the problem.  Also, naturally, inspect the font to check that 
>minAscii, maxAscii, etc are reasonable.
>
>Good luck
>	- Dan

--------------------------
Mark Guzdial : Georgia Tech : College of Computing : Atlanta, GA 30332-0280
Associate Professor - Learning Sciences & Technologies.
Collaborative Software Lab - http://coweb.cc.gatech.edu/csl/
(404) 894-5618 : Fax (404) 894-0673 : guzdial at cc.gatech.edu
http://www.cc.gatech.edu/gvu/people/Faculty/Mark.Guzdial.html





More information about the Squeak-dev mailing list