diff options
| author | Jason Rumney | 2000-10-23 22:11:51 +0000 |
|---|---|---|
| committer | Jason Rumney | 2000-10-23 22:11:51 +0000 |
| commit | d98c0337b36605ee3cbf226bb91919d88b75f0b0 (patch) | |
| tree | d2bef980633c6b5ebe0ac7fe8ad7eef5058dc2ce /src | |
| parent | 82d9a3b9c52c9b4c633cf4ac83fb640b7833e91f (diff) | |
| download | emacs-d98c0337b36605ee3cbf226bb91919d88b75f0b0.tar.gz emacs-d98c0337b36605ee3cbf226bb91919d88b75f0b0.zip | |
(x_to_w32_font): Initialize dpi from dpyinfo->resy.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32fns.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index d394fb3b81a..9996594649e 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -5172,7 +5172,7 @@ This function is an internal primitive--use `make-frame' instead.") | |||
| 5172 | } | 5172 | } |
| 5173 | /* Try out a font which we hope has bold and italic variations. */ | 5173 | /* Try out a font which we hope has bold and italic variations. */ |
| 5174 | if (!STRINGP (font)) | 5174 | if (!STRINGP (font)) |
| 5175 | font = x_new_font (f, "-*-Courier New-normal-r-*-*-13-*-*-*-c-*-iso8859-1"); | 5175 | font = x_new_font (f, "-*-Courier New-normal-r-*-*-*-120-*-*-c-*-iso8859-1"); |
| 5176 | if (! STRINGP (font)) | 5176 | if (! STRINGP (font)) |
| 5177 | font = x_new_font (f, "-*-Courier-normal-r-*-*-13-*-*-*-c-*-iso8859-1"); | 5177 | font = x_new_font (f, "-*-Courier-normal-r-*-*-13-*-*-*-c-*-iso8859-1"); |
| 5178 | /* If those didn't work, look for something which will at least work. */ | 5178 | /* If those didn't work, look for something which will at least work. */ |
| @@ -5798,7 +5798,7 @@ w32_codepage_for_font (char *fontname) | |||
| 5798 | /* Extract charset part of font string. */ | 5798 | /* Extract charset part of font string. */ |
| 5799 | if (sscanf (fontname, | 5799 | if (sscanf (fontname, |
| 5800 | "-%*[^-]-%*[^-]-%*[^-]-%*[^-]-%*[^-]-%*[^-]-%*[^-]-%*[^-]-%*[^-]-%*[^-]-%*[^-]-%*[^-]-%19s", | 5800 | "-%*[^-]-%*[^-]-%*[^-]-%*[^-]-%*[^-]-%*[^-]-%*[^-]-%*[^-]-%*[^-]-%*[^-]-%*[^-]-%*[^-]-%19s", |
| 5801 | charset_str) == EOF) | 5801 | charset_str) < 1) |
| 5802 | return CP_DEFAULT; | 5802 | return CP_DEFAULT; |
| 5803 | 5803 | ||
| 5804 | /* Remove leading "*-". */ | 5804 | /* Remove leading "*-". */ |
| @@ -5952,7 +5952,7 @@ x_to_w32_font (lpxstr, lplogfont) | |||
| 5952 | char name[50], weight[20], slant, pitch, pixels[10], height[10], | 5952 | char name[50], weight[20], slant, pitch, pixels[10], height[10], |
| 5953 | width[10], resy[10], remainder[20]; | 5953 | width[10], resy[10], remainder[20]; |
| 5954 | char * encoding; | 5954 | char * encoding; |
| 5955 | int dpi = one_w32_display_info.height_in; | 5955 | int dpi = one_w32_display_info.resy; |
| 5956 | 5956 | ||
| 5957 | fields = sscanf (lpxstr, | 5957 | fields = sscanf (lpxstr, |
| 5958 | "-%*[^-]-%49[^-]-%19[^-]-%c-%*[^-]-%*[^-]-%9[^-]-%9[^-]-%*[^-]-%9[^-]-%c-%9[^-]-%19s", | 5958 | "-%*[^-]-%49[^-]-%19[^-]-%c-%*[^-]-%*[^-]-%9[^-]-%9[^-]-%*[^-]-%9[^-]-%c-%9[^-]-%19s", |