Gfx: Improve D2D compatibility with GDI+ with zero height text when calculating lines