I use Pharo 1.1 rc2 10.06

I found strange behavior of wrapping text with TTFont (russian text) in
TextMorph.

I dont know how to reproduce it. But I see it in my application.

I have prototype button with TextMorph as it label. And I do many of:

aPanel add: prototype veryDeepCopy contentsWrapped: someRussianText.

And I see that text on label dont wrapped by words. It is wrapped only by
label bounds. And words in text became break.
Example. I expect

"one two
three"

But I see

"one two th
ree
"

Its work correct for english text. But for russian not.

And I cant reproduce it by execution code separetelly from my application
(aPanel add: prototype veryDeepCopy contentsWrapped: someRussianText).

I try many experiments with debuger and inspector. But I cant fix that.
Wrapping text code is not simple.
Maybe somebody tell me what place I need learn/inspect for fixing this bug?

And I found that If I insert char by keyboard at the end of word "two" (see
example) text wrapped correctly:
"one twoNEW
three
"

And this behavior correct in Pharo 1.0.
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to