aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32fns.c
diff options
context:
space:
mode:
authorJason Rumney <[email protected]>2005-10-25 21:14:39 +0000
committerJason Rumney <[email protected]>2005-10-25 21:14:39 +0000
commit813fa8a82d89881f353422026088591ff9861404 (patch)
tree7af3f9c4eab6aec760a503273ea6b5f6b3746578 /src/w32fns.c
parentb76781cd5e73ae970a3214ec1146f20feb438352 (diff)
(w32_to_x_font): Avoid forcing font widths.
Diffstat (limited to 'src/w32fns.c')
-rw-r--r--src/w32fns.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index 9346941813..e18ee3d43a 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -5284,9 +5284,13 @@ w32_to_x_font (lplogfont, lpxstr, len, specific_charset)
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,