changeset 66449:24efdc78f7c1

(w32_to_x_font): Avoid forcing font widths.
author Jason Rumney <jasonr@gnu.org>
date Tue, 25 Oct 2005 21:13:50 +0000
parents 37519beb2cff
children ba133074395c
files src/w32fns.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32fns.c	Tue Oct 25 20:13:44 2005 +0000
+++ b/src/w32fns.c	Tue Oct 25 21:13:50 2005 +0000
@@ -5284,9 +5284,13 @@
       strcpy (height_pixels, "*");
       strcpy (height_dpi, "*");
     }
+
+#if 0 /* Never put the width in the xfld. It fails on fonts with
+	 double-width characters.  */
   if (lplogfont->lfWidth)
     sprintf (width_pixels, "%u", lplogfont->lfWidth * 10);
   else
+#endif
     strcpy (width_pixels, "*");
 
   _snprintf (lpxstr, len - 1,