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

Submitter:  Erik Pfeifle <kirep>
Submitted:  Thu 24 Jun 2004 11:17:28 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  Rich333
Open/Closed:  Closed

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

Closed by request.

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

Patch #3561 fixed this, bug can be closed.

Marc Haisenko <darkdust>
Group 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>
Group 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>

 

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

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

 

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 8 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-12-26 ptah Open/ClosedOpen Closed
2004-12-08 t3rmin4t0r Attached File- Added x11_vs_win32.png, #1960
2004-06-28 nb StatusWont Fix None
    Assigned toNone Rich333
    Open/ClosedClosed Open
2004-06-24 rweather StatusNone Wont Fix
    Open/ClosedOpen Closed
2004-06-24 kirep Attached File- Added TestFontSize.zip, #1428

Back to the top

Powered by Savane 3.15-94dd.
Corresponding source code