[Mono-bugs] [Bug 327039] MeasureString behaves differently on win and linux

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Sep 21 10:58:21 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=327039#c1


Sebastien Pouliot <spouliot at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |spouliot at novell.com
           Severity|Normal                                          |Minor
             Status|NEW                                             |NEEDINFO
          Component|Windows.Forms                                   |libgdiplus
      Info Provider|                                                |bart.jansen at etro.vub.ac.be




--- Comment #1 from Sebastien Pouliot <spouliot at novell.com>  2007-09-21 08:58:20 MST ---
First thanks for filling the bug. Now IIRC you talked (on the mailing-list)
about a large difference while this test case has a rather small difference
(1-3 pixels) in fact smaller than the difference between the two API calls used
on Windows.

Do you have another test case showing a larger diff ?

FWIW libgdiplus won't *ever* give the same results as MS GDI+. The point of the
functions are to report how much screen space the renderer requires to draw the
string. That may be different between Window and Linux because of:

- different displays (e.g. dpi affect calculation. I have 2 identical LCD
panels and their DPI are reported differently by Windows and Linux);

- different font versions (you may not be using the exact same Arial revision
on both systems);

- different renderer code (e.g. supports for hinting);

- different API assumptions (e.g. MS reports different values for
Graphics.MeasureString and TextRenderer.MeasureText)

and, of course, 

- bugs :) this is where the values returned doesn't match the text we draw

[but, hopefully, that last one will get better with time]


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list