Gfx: Check for errors in TextFormatD2D::SetProperties
Gfx: Improve line trimming with D2D when one line is visible