Announcement

Collapse
No announcement yet.

Getting text render component size

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Getting text render component size

    Hi. I'm making a blueprint which splits a string into two or three others using a delimiter. I want each line to scale up or down to make a blocky looking...erm... text block.

    So if i had:

    This is what i'm<n>trying<n>to do, ok?

    3 text render components will take a line each making

    This is what i'm
    trying
    to do, ok?

    I've got this far, but I want it so all the lines scale up to a fixed width, so the 'trying' line will have the font size adjusted much larger than the other two.

    So, to cut a long story short, is it possible to find the bounds, or even just the length (in units, not characters) of the text object once it's created, so I can do some scaling magic?

    Thanks in advance.

    Dan.
Working...
X