[Tweak] Word wrapping in Tweak

Fournier Eric emf at umn.edu
Fri Oct 20 14:49:40 UTC 2006

I have this version of  
rn:  in my image:

ar 4/12/2005 19:53 · scanning · 2 implementors · in change sets:  
5994-004-systemMod 6651ExternalCleanup 6662WideNames

But word wrapping is still occurring in the middle of words in my image.

I found differences between MultiCompositionScanner and  
CompositionScanner in crossedX, notably that breakAtSpace is set to  
false in setFont, causing crossedX to drop to the clause at the  
bottom commented:

"It wasn't a space, but anyway this is where we break the line."

So, as shipped the class will always break the line anywhere. But  
setting breakAtSpace true did not seem to fix to problem. Also, i  
tried initializing MultiCharacterScanner:


with no effect. I can see the wrapping being broken in the first two  
windows you open when Tweak starts up as downloaded straight off impara.

-- Eric

On Oct 19, 2006, at 10:25 PM, Andreas Raab wrote:

> We fixed this a long time ago. If you look at  
> MultiCharacterScanner>>scanCharactersFrom:to:in:rightX:stopConditions: 
> kern: this method should be from '05 with the main difference being  
> that the (broken) call to basicScanCharacters... is taken out.
> Cheers,
>   - Andreas
> Fournier Eric wrote:
>> What's the story with MultiCompositionScanner? The version I have  
>> in my (not too recently updated) Tweak image is used by  
>> CTextComposer as the scanner, and is the reason word wrapping  
>> seems broken in Tweak.
>> I regressed to CompositionScanner, which got word wrapping back at  
>> the cost of multi-lingual compatibility (?).
>> I was just wondering if MultiCompositionScanner had progressed  
>> beyond 12/2002 (timestamps seen in there).
>> Eric Fournier
>> University of Minnesota
>> Office of Information Technology
>> emf at umn.edu
>> _______________________________________________
>> Tweak mailing list
>> Tweak at impara.de
>> http://impara.de/mailman/listinfo/tweak
> _______________________________________________
> Tweak mailing list
> Tweak at impara.de
> http://impara.de/mailman/listinfo/tweak

More information about the Squeak-dev mailing list