[Mono-bugs] [Bug 81787][Wis] Changed - MeasureString returns different size during print.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Aug 2 09:31:44 EDT 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by sebastien at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=81787
--- shadow/81787 2007-05-31 13:33:22.000000000 -0400
+++ shadow/81787.tmp.29287 2007-08-02 09:31:44.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 81787
Product: Mono: Class Libraries
Version: 1.2
-OS:
+OS: unknown
OS Details:
-Status: NEW
+Status: NEEDINFO
Resolution:
-Severity:
+Severity: Unknown
Priority: Wishlist
Component: Sys.Drawing.
AssignedTo: mono-bugs at ximian.com
ReportedBy: vlad.dimitrov at gmail.com
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
@@ -30,6 +30,22 @@
I am attaching sample project that writes to the console the sizes measured.
------- Additional Comments From vlad.dimitrov at gmail.com 2007-05-31 13:33 -------
Created an attachment (id=19356)
Test project to reproduce the problem
+
+------- Additional Comments From sebastien at ximian.com 2007-08-02 09:31 -------
+This is due to this code fragment...
+
+ /* this will always return the same value, except when printing */
+ if (graphics->type == gtPostScript)
+ FontSize = gdip_unit_conversion (UnitPixel, UnitCairoPoint,
+gdip_get_display_dpi (), graphics->type, font->sizeInPixels);
+ else
+ FontSize = font->sizeInPixels;
+ cairo_set_font_size (graphics->ct, FontSize);
+
+which adjust the cairo font size based on the different DPI (for
+screen) and hundreds of points (for printing).
+
+Does this affects the actual printing somehow ?
More information about the mono-bugs
mailing list