detect and skip \r
add multiline label alignment

the default label alignemnt mode will be determined by the
underlying direction of the script (i.e. right for rtl languages
and left for ltr languages)