I assumed that this method would set the contents of my TextMorph with the
given arguments.  However, the contents are set before the font is changed:


> string: aString fontName: aName size: aSize wrap: shouldWrap
>       
>       shouldWrap
>               ifTrue: [self contentsWrapped: aString]
>               ifFalse: [self contents: aString].
> 
>       self fontName: aName size: aSize
> 

Shouldn't this be:
string: aString fontName: aName size: aSize wrap: shouldWrap
        
        self fontName: aName size: aSize.

        shouldWrap
                ifTrue: [self contentsWrapped: aString]
                ifFalse: [self contents: aString].

or am I missing something?

Thanks,
Sean

p.s. is there a good reference for fonts?  I find the available classes (and
no class comments) dizzying - LogicalFont, TT..., FreeType...
-- 
View this message in context: 
http://forum.world.st/TextMorph-string-fontName-size-wrap-bug-tp2122277p2122277.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to