comparison src/w32fns.c @ 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 a0d1312ede66
children a14e3b63c666
comparison
equal deleted inserted replaced
66448:37519beb2cff 66449:24efdc78f7c1
5282 else 5282 else
5283 { 5283 {
5284 strcpy (height_pixels, "*"); 5284 strcpy (height_pixels, "*");
5285 strcpy (height_dpi, "*"); 5285 strcpy (height_dpi, "*");
5286 } 5286 }
5287
5288 #if 0 /* Never put the width in the xfld. It fails on fonts with
5289 double-width characters. */
5287 if (lplogfont->lfWidth) 5290 if (lplogfont->lfWidth)
5288 sprintf (width_pixels, "%u", lplogfont->lfWidth * 10); 5291 sprintf (width_pixels, "%u", lplogfont->lfWidth * 10);
5289 else 5292 else
5293 #endif
5290 strcpy (width_pixels, "*"); 5294 strcpy (width_pixels, "*");
5291 5295
5292 _snprintf (lpxstr, len - 1, 5296 _snprintf (lpxstr, len - 1,
5293 "-%s-%s-%s-%c-normal-normal-%s-%s-%d-%d-%c-%s-%s", 5297 "-%s-%s-%s-%c-normal-normal-%s-%s-%d-%d-%c-%s-%s",
5294 fonttype, /* foundry */ 5298 fonttype, /* foundry */