diff options
| author | Jason Rumney | 2005-10-25 21:14:39 +0000 |
|---|---|---|
| committer | Jason Rumney | 2005-10-25 21:14:39 +0000 |
| commit | 813fa8a82d89881f353422026088591ff9861404 (patch) | |
| tree | 7af3f9c4eab6aec760a503273ea6b5f6b3746578 /src | |
| parent | b76781cd5e73ae970a3214ec1146f20feb438352 (diff) | |
| download | emacs-813fa8a82d89881f353422026088591ff9861404.tar.gz emacs-813fa8a82d89881f353422026088591ff9861404.zip | |
(w32_to_x_font): Avoid forcing font widths.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/w32fns.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9bb33016bb4..d4ba5c96723 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2005-10-25 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * w32fns.c (w32_to_x_font): Avoid forcing font widths. | ||
| 4 | |||
| 1 | 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 5 | 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 6 | ||
| 3 | * image.c [MAC_OS] (image_load_qt_1): Check image size. | 7 | * 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) | |||
| 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, |