[squeak-dev] Bug: TextOnCurve + TextAnchor

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Thu Sep 5 20:25:03 UTC 2019


Hi all,


this time I have installed my updates (Trunk #18872), so this bug should be reproducible :)


Do it:


owner := CurveMorph new

extent: 200 @ 200;

color: Color veryLightGray;

yourself.

child := Morph new.

text := 'Here is a morph: ' asText,

((String value: 1) asText

addAttribute: (TextAnchor new anchoredMorph: child);

yourself).

textMorph := text asMorph.

textMorph followCurve.

owner addMorph: textMorph.

owner openAsTool.

Result: child is not correctly positioned, it always has a point near 0 at 0, even if you move owner.
If you disable the #followCurve line, things work.

I only took a quick glance at the Graphics source, but it looks as if destX in BitBltDisplayScanner is not set correctly.
Or am I doing something wrong?

Best,
Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190905/0d60126a/attachment.html>


More information about the Squeak-dev mailing list