diff options
| author | Jason Rumney | 2007-12-19 22:27:46 +0000 |
|---|---|---|
| committer | Jason Rumney | 2007-12-19 22:27:46 +0000 |
| commit | 593fe38ee9b6f06fc37f7190dc67b262b74e31c3 (patch) | |
| tree | 2756366655fa2453b20592b60f7eb81f68f5a13a /src | |
| parent | 859a9fdfc4e15f7364e772ee69bc4ed90653d3b4 (diff) | |
| download | emacs-593fe38ee9b6f06fc37f7190dc67b262b74e31c3.tar.gz emacs-593fe38ee9b6f06fc37f7190dc67b262b74e31c3.zip | |
(w32font_open): Remove debug code.
(w32font_match_internal, w32_font_open_internal): Remove experimental change.
Last checkin should have had the following comment:
(w32font_text_extents): Don't use the frame stored in the
font, as it may have been deleted.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32font.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/w32font.c b/src/w32font.c index bb1c125e2a4..6dfcfb3f527 100644 --- a/src/w32font.c +++ b/src/w32font.c | |||
| @@ -203,8 +203,6 @@ w32font_open (f, font_entity, pixel_size) | |||
| 203 | if (w32_font == NULL) | 203 | if (w32_font == NULL) |
| 204 | return NULL; | 204 | return NULL; |
| 205 | 205 | ||
| 206 | safe_debug_print (font_entity); | ||
| 207 | |||
| 208 | if (!w32font_open_internal (f, font_entity, pixel_size, w32_font)) | 206 | if (!w32font_open_internal (f, font_entity, pixel_size, w32_font)) |
| 209 | { | 207 | { |
| 210 | xfree (w32_font); | 208 | xfree (w32_font); |
| @@ -610,10 +608,6 @@ w32font_match_internal (frame, font_spec, opentype_only) | |||
| 610 | bzero (&match_data.pattern, sizeof (LOGFONT)); | 608 | bzero (&match_data.pattern, sizeof (LOGFONT)); |
| 611 | fill_in_logfont (f, &match_data.pattern, font_spec); | 609 | fill_in_logfont (f, &match_data.pattern, font_spec); |
| 612 | 610 | ||
| 613 | /* If weight was not specified, try to get a normal weight font. */ | ||
| 614 | if (!match_data.pattern.lfWeight) | ||
| 615 | match_data.pattern.lfWeight = FW_NORMAL; | ||
| 616 | |||
| 617 | match_data.opentype_only = opentype_only; | 611 | match_data.opentype_only = opentype_only; |
| 618 | if (opentype_only) | 612 | if (opentype_only) |
| 619 | match_data.pattern.lfOutPrecision = OUT_OUTLINE_PRECIS; | 613 | match_data.pattern.lfOutPrecision = OUT_OUTLINE_PRECIS; |
| @@ -650,10 +644,6 @@ w32font_open_internal (f, font_entity, pixel_size, w32_font) | |||
| 650 | bzero (&logfont, sizeof (logfont)); | 644 | bzero (&logfont, sizeof (logfont)); |
| 651 | fill_in_logfont (f, &logfont, font_entity); | 645 | fill_in_logfont (f, &logfont, font_entity); |
| 652 | 646 | ||
| 653 | /* If weight was not specified, try to get a normal weight font. */ | ||
| 654 | if (!logfont.lfWeight) | ||
| 655 | logfont.lfWeight = FW_NORMAL; | ||
| 656 | |||
| 657 | size = XINT (AREF (font_entity, FONT_SIZE_INDEX)); | 647 | size = XINT (AREF (font_entity, FONT_SIZE_INDEX)); |
| 658 | if (!size) | 648 | if (!size) |
| 659 | size = pixel_size; | 649 | size = pixel_size; |