GdiDrawText rounding issue #20
GdiDrawText seems to round down (Math.floor), whereas JSP uses round (Math.round).
For comparison, gr.DrawString seems to use Math.round (SMP & JSP). So it looks like a bug with GdiDrawText?
var font = gdi.Font("segoe ui", 12, 1)
Thanks for the report!
In other words, float/double to integer rounding is gonna differ from
PS: Said hack will involve changing every method prototype to accept floats instead and rounding them manually to integer. Hopefully, you will agree, that such workaround is really ugly...
Status DrawString( const WCHAR* string, INT length, const Font *font, const RectF& layoutRect, ///< Rectangle with float coordinates const StringFormat *stringFormat, const Brush *brush );