bugDotGNU Portable.NET - Bugs: bug #9444, X(Sharp) font size does not...

 
 

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

bug #9444: X(Sharp) font size does not correspond the size of a System.Drawing.Font

Submitted by:  Erik Pfeifle <kirep>
Submitted on:  Thu 24 Jun 2004 11:17:28 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: Richard Baumann <Rich333>
Open/Closed: Closed

Sun 26 Dec 2004 02:51:48 PM UTC, comment #3:

Closed by request.

Carl-Adam Brengesjo <ptah>
Project Member
Fri 10 Dec 2004 04:17:15 PM UTC, comment #2:

Patch #3561 fixed this, bug can be closed.

Marc Haisenko <darkdust>
Project Member
Thu 24 Jun 2004 12:09:03 PM UTC, comment #1:

X fonts, particularly the default bitmapped fonts, do not
scale well. So Xsharp rounds the font size to the nearest
X size that doesn't exhibit scaling artifacts. If you want
precise font sizes, you must enable Xft fonts at configure
time with "./configure --enable-xft".

Rhys Weatherley <rweather>
Project Administrator
Thu 24 Jun 2004 11:17:28 AM UTC, original submission:

For a range of "System.Drawing.Font" sizes there is just one font created in X(Sharp).

I have tested with System.Drawing.Graphics.MeasureString(..) method.

With the test program you can select a FontFamily and a FontSize in 0.25 Steps. The TestText "Let's go DotGNU" and the measuered string length will be displayed for the selected Font.
For e.g. Arial: The X(Sharp) Font is the same for the range 8-9,25 and 9.5-11.25 and 11.5-14.75....

With test program you can generate the attached .txt files which includes for each font and size the measured string length.
The Analysis (excel chart) is in TestFontSize.pdf.

Erik Pfeifle <kirep>

 

Attached Files
file #2188:  x11_vs_win32.png added by t3rmin4t0r (4KiB - image/png - X11 vs Win32 (4 pixel difference))
file #1437:  TestFontSize.zip added by kirep (43KiB - application/x-zip-compressed - Source file, executable, excel chart as pdf)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 8 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 26 Dec 2004 02:52:08 PM UTCptahOpen/ClosedOpen=>Closed
Wed 08 Dec 2004 04:57:02 PM UTCt3rmin4t0rAttached File-=>Added x11_vs_win32.png, #1960
Mon 28 Jun 2004 08:12:36 AM UTCnbStatusWont Fix=>None
  Assigned toNone=>Rich333
  Open/ClosedClosed=>Open
Thu 24 Jun 2004 12:09:03 PM UTCrweatherStatusNone=>Wont Fix
  Open/ClosedOpen=>Closed
Thu 24 Jun 2004 11:17:28 AM UTCkirepAttached File-=>Added TestFontSize.zip, #1428

Back to the top


Powered by Savane 3.1-cleanup1