1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-04 11:40:22 +00:00

(w32_to_x_font): Avoid forcing font widths.

This commit is contained in:
Jason Rumney 2005-10-25 21:14:39 +00:00
parent b76781cd5e
commit 813fa8a82d
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2005-10-25 Jason Rumney <jasonr@gnu.org>
* w32fns.c (w32_to_x_font): Avoid forcing font widths.
2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* image.c [MAC_OS] (image_load_qt_1): Check image size.

View File

@ -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,