Text alignment within a text box
You can now control how the text sits inside its box, independent of where the box is placed on the page.
vAlign — vertical position of the text block: top, middle, or bottomhAlign — horizontal position of the text block: left, center, or rightstyle.text.align — alignment of individual lines within the block: left, center, or rightAutomatic font size
Set style.text.size to "auto" and the font scales to fill the box as large as possible. Works correctly with multi-line text using <br> tags — the font size accounts for the longest line and the total number of lines.
Maximum font size cap
When using size: "auto", set style.text.sizeMax to prevent the font from growing beyond a typographic limit — for example "sizeMax": "24pt".
vAlign: "middle" and hAlign: "center" now correctly center text inside a box with an explicit size.<br>-separated text no longer produces an unexpectedly small font.Version 2.0 is a complete rewrite of radixCreate from the ground up.