Open tig opened 4 years ago
Hi tig, is this problem solved?
Hi tig, is this problem solved?
Not that I know of.
Any alternatives? I see to SkiaSharp, but they can't break text by words (or i missed that).
At least SkiaSharp measures strings with same values in Windows and Linux. Think that implementing word wrapping is not so kind of rocket science. Still it's a pity that well-worked mechanism needs to be replaced for linux support...
Graphics.MeasureString
always returns round numbers that are clearly smaller than they should be.Graphics.MeasureString
ignoresGraphics.DpiX
and Graphics.DpiY`See sample program and Windows and Linux output:
Windows Result:
Linux Result:
Note
GetHeight(Graphics g)
is also broken, but I've filed that here: https://github.com/mono/libgdiplus/issues/622