[squeak-dev] Strange render bug

Bob Arning arning315 at comcast.net
Thu Jul 25 17:10:25 UTC 2013


Try this:

'From Squeak4.4 of 1 March 2013 [latest update: #12489] on 25 July 2013 
at 1:09:32 pm'!

!PluggableTextMorphPlus methodsFor: 'styling' stamp: 'raa 7/25/2013 13:09'!
stylerStyled: styledCopyOfText
     "Sent after the styler completed styling the underlying text"
     textMorph contents runs: styledCopyOfText runs .
     "textMorph paragraph recomposeFrom: 1 to: textMorph contents size 
delta: 0."     "caused chars to appear in wrong order esp. in demo mode. 
remove this line when sure it is fixed"
     textMorph paragraph composeAll.    "<---- added this"
     textMorph updateFromParagraph.
     selectionInterval
         ifNotNil:[
             textMorph editor
                 selectInvisiblyFrom: selectionInterval first to: 
selectionInterval last;
                 storeSelectionInParagraph;
                 setEmphasisHere].
     textMorph editor blinkParen.
     self scrollSelectionIntoView! !

Cheers,
Bob

On 7/25/13 12:02 PM, Chris Muller wrote:
> This has been a very annoying bug for years and it still bites me
> every single day.  It seems to be related to incorrect calculation of
> the width of bold text.  If anyone knows how to fix this, I would be
> very grateful.
>
> On Wed, Jul 24, 2013 at 4:17 PM, Frank Shearar <frank.shearar at gmail.com> wrote:
>> I just noticed this in the dependency browser. Note the right end of
>> the top line, and the left part of the next line. The "withStamp:" is
>> my favourite, where we have half a word normal+blue, and the other
>> half black+bold. The bug disappears as soon as I widen the codepane.
>>
>> I can't reproduce the bug by narrowing the codepane though: the text
>> correctly word-wraps.
>>
>> (Duly reported as http://bugs.squeak.org/view.php?id=7781)
>>
>> frank
>>
>>
>>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20130725/5e6999a2/attachment.htm


More information about the Squeak-dev mailing list