patchDotGNU Portable.NET - Patches: patch #3559, Fix font size calculation

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #3559: Fix font size calculation

Submitter:  Marc Haisenko <darkdust>
Submitted:  Wed 08 Dec 2004 09:40:27 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  None Open/Closed:  Closed

Wed 08 Dec 2004 04:49:14 PM UTC, comment #1: 

Applied on 8th Dec 2004 .

Gopal.V <t3rmin4t0r>
Group administrator
Wed 08 Dec 2004 09:40:27 AM UTC, original submission:  

The current font size calculation assumes Windows is normally using 108 DPI for font rendering which is wrong. All documents clearly state it's 96 DPI. So setting the PointSizeConversion float from System.Drawing.Xsharp.DrawingFont.cs to 96.0 fixes the font size.

Tested with MicroSoft Sans Serif at sizes 10, 50 and 100 with Windows XP via rdesktop and X Window at 1024x768 (80 DPI) and at 800x600 (75 DPI). Font sizes now match to the pixel.

Marc Haisenko <darkdust>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-12-08 t3rmin4t0r StatusNone Done
    Open/ClosedOpen Closed
2004-12-08 darkdust Attached File- Added DrawingFont.cs.FixFontsize.patch, #3928

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code