Text is not being rendered for any BalloonCanvas with a transformation. When I place a StringMorph inside a TransformationMorph subclass that uses a balloon canvas it does not render. When I look at the code involved the following two methods stand out.
BalloonCanvas>>drawString:from:to:in:font:color: BalloonCanvas>>paragraph:bounds:color:
Both call ifNoTransformWithIn: and only attempt to render if it returns true.
I imagine this is an issue with the use of bitmap fonts, it should be possible to scale true type fonts. It would be nice however to at least make an attempt to locate a suitable font. The current code results in just blank space.
Michael
It is not the ifNoTransformWithIn: that is the issue. It is getting to the bitblt, but nothing shows. I suspect a clipping issue with the use of TransformationMorph. The bounding box is centered on 0, rather than being all positive as in the normal morphic cases. I am still looking into this, but as usual if someone has knowledge of this let me know.
Michael
On Jan 1, 2005, at 8:59 PM, Michael Latta wrote:
Text is not being rendered for any BalloonCanvas with a transformation. When I place a StringMorph inside a TransformationMorph subclass that uses a balloon canvas it does not render. When I look at the code involved the following two methods stand out.
BalloonCanvas>>drawString:from:to:in:font:color: BalloonCanvas>>paragraph:bounds:color:
Both call ifNoTransformWithIn: and only attempt to render if it returns true.
I imagine this is an issue with the use of bitmap fonts, it should be possible to scale true type fonts. It would be nice however to at least make an attempt to locate a suitable font. The current code results in just blank space.
Michael
The drawString:from:to:in:font:color: method is not transforming the bounding box using the current transformation. But it is not dealing with scaling yet. I should have a fix pretty soon for this with TT fonts at least.
Michael
On Jan 1, 2005, at 9:51 PM, Michael Latta wrote:
It is not the ifNoTransformWithIn: that is the issue. It is getting to the bitblt, but nothing shows. I suspect a clipping issue with the use of TransformationMorph. The bounding box is centered on 0, rather than being all positive as in the normal morphic cases. I am still looking into this, but as usual if someone has knowledge of this let me know.
Michael
On Jan 1, 2005, at 8:59 PM, Michael Latta wrote:
Text is not being rendered for any BalloonCanvas with a transformation. When I place a StringMorph inside a TransformationMorph subclass that uses a balloon canvas it does not render. When I look at the code involved the following two methods stand out.
BalloonCanvas>>drawString:from:to:in:font:color: BalloonCanvas>>paragraph:bounds:color:
Both call ifNoTransformWithIn: and only attempt to render if it returns true.
I imagine this is an issue with the use of bitmap fonts, it should be possible to scale true type fonts. It would be nice however to at least make an attempt to locate a suitable font. The current code results in just blank space.
Michael
squeak-dev@lists.squeakfoundation.org