From 813fa8a82d89881f353422026088591ff9861404 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Tue, 25 Oct 2005 21:14:39 +0000 Subject: [PATCH] (w32_to_x_font): Avoid forcing font widths. --- src/ChangeLog | 4 ++++ src/w32fns.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 9bb33016bb4..d4ba5c96723 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2005-10-25 Jason Rumney + + * w32fns.c (w32_to_x_font): Avoid forcing font widths. + 2005-10-25 YAMAMOTO Mitsuharu * image.c [MAC_OS] (image_load_qt_1): Check image size. diff --git a/src/w32fns.c b/src/w32fns.c index 93469418137..e18ee3d43a9 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, -- 2.39.5