[Mono-bugs] [Bug 80947][Wis] Changed - FontDialog FixedWidth Problem

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Mar 15 15:51:53 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 monkey at jpobst.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80947

--- shadow/80947	2007-02-23 13:27:05.000000000 -0500
+++ shadow/80947.tmp.4262	2007-03-15 14:51:53.000000000 -0500
@@ -10,13 +10,12 @@
 Component: Windows.Forms
 AssignedTo: toshok at ximian.com                            
 ReportedBy: jeffr at newhartsystems.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
-Cc: 
 Summary: FontDialog FixedWidth Problem
 
 I am using version 1.2.3.1.  The FontDialog class contains a property 
 called FixedWidth.  When set it causes only fixed width fonts to be 
 displayed (Under the Microsoft Runtime), under Mono all fonts are 
 displayesd.
@@ -46,6 +45,19 @@
             FontDlg.FixedPitchOnly = true;
             FontDlg.ShowDialog();
 
 Thanks Jeff
 
 
+
+------- Additional Comments From monkey at jpobst.com  2007-03-15 14:51 -------
+It's amazing how hard this is to do.  It should appear in the
+ToHLogFont, but it doesn't.  There's nothing on the Font object that
+tells us this is a fixed font.  There seems to be two ways to do this:
+- Measure two letter widths, like "i" and "m" and see if they are the
+same.
+- P/Invoke to the OS, and use any native methods they have.
+
+Attaching a patch that uses the first mechanism.  It reports close to
+the same fonts as MS, but adds a few useless ones like WebDings.
+
+If anyone else wants to take a better stab at this, feel free.


More information about the mono-bugs mailing list