[Pharo-users] Spec LabelModel's #font: and other styles

stepharo stepharo at free.fr
Sat Oct 3 03:24:40 EDT 2015

I think that this part has been completely forgotten by spec.
Normally the layout should take into account the size of the label and font
and I do not see why we could not specify the color and other attributes 
we want to have but we did not work on this point.
Now we will have to see that in the context of Brick skin.


Le 2/10/15 13:47, Peter Uhnák a écrit :
> Does it make sense to be able to specify font and similar  at Spec-level?
> And not just font, also the size, color, or emphasis (which currently 
> only emphasis is supported).
> From one perspective it's handy, because I can change it at a whim, 
> however I wonder whether this shouldn't be responsibility of some 
> styler instead.
> Text as far as I know is capable of storing styled information. This 
> would enable to outsource the style information to someone else (e.g. 
> your stylesheet). However from practical perspective for the end user 
> it would be extra work as it would add an indirection step.
> For TextModel that would be clearly better (because you might want to 
> style different parts of text differently), however for LabelModel I'm 
> not so sure.
> Any opinions?
> Thanks,
> Peter

More information about the Pharo-users mailing list