diff options
| author | Jason Rumney | 2008-05-29 16:12:50 +0000 |
|---|---|---|
| committer | Jason Rumney | 2008-05-29 16:12:50 +0000 |
| commit | 1519d52ee5536601899189485a96674113a42199 (patch) | |
| tree | cea8dfd73266896e83a62b5e9262a509d847b818 /src | |
| parent | e887f2ac0e5b733fdde88d58b0586d834b23bc42 (diff) | |
| download | emacs-1519d52ee5536601899189485a96674113a42199.tar.gz emacs-1519d52ee5536601899189485a96674113a42199.zip | |
(w32font_open_internal): Prefer truetype fonts unless
'raster' specified.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/w32font.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 722c9fb0fb8..fbebde7a3a7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-05-29 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * w32font.c (w32font_open_internal): Prefer truetype fonts unless | ||
| 4 | 'raster' specified. | ||
| 5 | |||
| 1 | 2008-05-29 Juanma Barranquero <lekktu@gmail.com> | 6 | 2008-05-29 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face): | 8 | * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face): |
diff --git a/src/w32font.c b/src/w32font.c index 1828af108ee..78f8049d851 100644 --- a/src/w32font.c +++ b/src/w32font.c | |||
| @@ -772,6 +772,12 @@ w32font_open_internal (f, font_entity, pixel_size, font_object) | |||
| 772 | bzero (&logfont, sizeof (logfont)); | 772 | bzero (&logfont, sizeof (logfont)); |
| 773 | fill_in_logfont (f, &logfont, font_entity); | 773 | fill_in_logfont (f, &logfont, font_entity); |
| 774 | 774 | ||
| 775 | /* Prefer truetype fonts, to avoid known problems with type1 fonts, and | ||
| 776 | limitations in bitmap fonts. */ | ||
| 777 | val = AREF (font_entity, FONT_FOUNDRY_INDEX); | ||
| 778 | if (!EQ (val, Qraster)) | ||
| 779 | logfont.lfOutPrecision = OUT_TT_PRECIS; | ||
| 780 | |||
| 775 | size = XINT (AREF (font_entity, FONT_SIZE_INDEX)); | 781 | size = XINT (AREF (font_entity, FONT_SIZE_INDEX)); |
| 776 | if (!size) | 782 | if (!size) |
| 777 | size = pixel_size; | 783 | size = pixel_size; |