Thanks, I got it. The label style interface is actually quite
convenient!
One quick question: are labels supported by CAAT when using WebGL? Or
to say it more generally: what is supported by CAAT when using WebGL?
Does all functionality transfer transparently from canvas 2D to WebGL?
(I can't test because WebGL is broken at the moment, but our ideal
would be to use WebGL if possible)
On Fri 27 Sep 2013 18:34:15 CEST, hyperandroid wrote:
> Actually, text actors behave exactly as canvas text.
> It will modify its position to match exactly the canvas' text based on
> alignment and text baseline. If is also single line.
>
> The label is a way more advanced object, which is based on styles for
> visuals, can flow text, mix font and image objects and have anchor
> capabilities. It is therefore a heavy object and I recommend caching
> it as bitmap after creation.
>
> One more thing. Every CAAT actor calls the method paint to draw
> itself. You could overwrite it, set the shadow and then call the
> original method on the textActor to have the shadow effect on.
>
> On Sep 27, 2013 6:33 AM, "Arne Brutschy" <
abru...@xylon.de
> <mailto:
abru...@xylon.de>> wrote:
>
>
> Answering myself:
>
> Text actors can't have shadows. In fact, they seem to be rather
> rudimentary.
>
> Label actors can be multiline and use different styles per actor.
> Very handy. Styles can be created up-front and reused.
>
> Actor caching yields inconsistent results with either type of
> actor for my. Does anyone use caching successfully?
>
> Arne
>
> On 16/09/13 20:37, Arne Brutschy wrote:
>
> Hey,
>
> what is the difference between a Label and a TextActor?
>
> Can I add shadows to TextActors?
>
> What would be the best option when I need a text consisting of
> several
> different fonts/sizes?
>
> Cheers,
> Arne
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "CAAT javascript framework" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to caatjs+unsubscribe@__
googlegroups.com
> <mailto:
caatjs%2Bunsu...@googlegroups.com>.
> For more options, visit
https://groups.google.com/__groups/opt_out
> <
https://groups.google.com/groups/opt_out>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "CAAT javascript framework" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
caatjs+un...@googlegroups.com.