alignment for attributed text