Add an attributed string alignment method.