
Hope that helps you implementing your own. you can put in a table cell and then align the. To have text - align : center work you need to add that style to the siteInfo div or wrap the input in a paragraph and add text - align : center to the paragraph. There are a few more small details you have to deal with if you are working on a unity before 5.3, but its essentially the same process. How do you center align an input box in HTML You need to put the text - align : center on the containing div, not on the input itself. Also, you don't want to move the characters at all if the space is small, so a minimum space value comes handy. That's why in my implementation I added a factor to know how much to move the characters compared to the whole words. It can be a bit better if you also allow the characters to move a bit. Then, its just dividing it against the number of words and voila! Justification! You can find the min and max x of each line and you will know how much space you need to add. With that information, you know where you lines start and end. You can then parse the text, to see where the whiteSpaces are, so you could separate the words.īecause this is a VertexModifier, you have access to all the vertices, so you know where each character is located.

That gave me info about each line (specially, in which character they start). Though, you can expect them to be supported when the output format is either HTML. The way I do it for I2 SmartEdge, was to access the result of the textGenerator from the UI.Text. These built-in text alignment roles may not be honored by all converters.

This plugin is not a replacement of the Text object, so it works as a VertexModifier and adds lots of the missing things (like animation, justification, deforms, pixel perfect, etc). Coincidentally, I just finished the Text Justification, Wrapping and Overflowing for my new plugin I2 SmartEdge.
