On Tue, Mar 15, 2011 at 9:31 AM, Jake Knickerbocker
<[email protected]> wrote:
>
> And then another font related question.
>
> I'm doing something like this:
>
> text_actor = clutter_text_new_full(FONT, "*** Lots and lots of text
> ***", &white);
> clutter_text_set_line_wrap(CLUTTER_TEXT(text_actor), TRUE);
> clutter_actor_set_size(text_actor, DESC_W, 100);
>
>
> Where the text amount is very long. A text actor will stretch to fit the
> amount
> of text. Correct?

It depends how the parent container allocates its children. If the
parent is a ClutterGroup, then your actor will be exactly the size set
with the clutter_actor_set_size function.

>
> When I do this:
>
> clutter_actor_get_size(text_actor, &w, &h);
>
> The height value returned is that of the original set_size: 100, even
> though the
> actor on screen is clearly bigger.
>
> Is there any way to know the size of the final, stretched actor?

I expect that the ClutterText is actually drawing outside the
allocation, since you are not giving it enough room for it to display
all the text and the "ellipsize" property is not set.

Regards,

Thomas
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to