Added text alignment

Text alignment supported in horizontal and vertical axes, based on
weighted doubles (0d = left or top, 1d = right or bottom).