API text alignment