[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [patch #3559] Fix font size calculation
From: |
Marc Haisenko |
Subject: |
[Pnet-developers] [patch #3559] Fix font size calculation |
User-agent: |
Mozilla/5.0 (compatible; Konqueror/3.3; Linux) (KHTML, like Gecko) |
This mail is an automated notification from the patch tracker
of the project: DotGNU Portable.NET.
/**************************************************************************/
[patch #3559] Full Item Snapshot:
URL: <http://savannah.gnu.org/patch/?func=detailitem&item_id=3559>
Project: DotGNU Portable.NET
Submitted by: Marc Haisenko
On: Wed 12/08/2004 at 09:40
Category: None
Priority: 5 - Normal
Resolution: None
Privacy: Public
Assigned to: None
Originator Email:
Status: Open
Summary: Fix font size calculation
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.
File Attachments
-------------------
-------------------------------------------------------
Date: Wed 12/08/2004 at 09:40 Name: DrawingFont.cs.FixFontsize.patch Size:
808B By: darkdust
http://savannah.gnu.org/patch/download.php?item_id=3559&item_file_id=3928
For detailed info, follow this link:
<http://savannah.gnu.org/patch/?func=detailitem&item_id=3559>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Pnet-developers] [patch #3559] Fix font size calculation,
Marc Haisenko <=