Hi
text_size is the limits you give to your text rendering, here you
limited width to TI2.width, so when the text is larger than that, a
carriage return will be introduced to split the text across multiple
lines, of course, then your text can still overflow on heigh, and be
masked by surrounding elements. In this case, it can make sense to
reduce the font_size, if you can't make your UI more flexible (giving
more place to the label). You did an error on that, as you intuited,
though, as in your callback, you check text_size (which won't change,
it's the limations you gave), instead of texture_size (which is the size
of the rendered text), also, you probably want to compare
texture_size[1] to self.t2_wid.heigh. If it's superior, then you can,
for example remove one point to the font_size, but it would be more
clever to bind the callback to texture or texture_size, i think, so the
callback is called continuously until the text fit in the place.
Are things more clear?
> --
> You received this message because you are subscribed to the Google Groups "Kivy users support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
kivy-users+...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>