Workaround for DirectWrite creating NaN coordinates.