remove overflow when not needed and add font smoothing