Commit 1519d52e authored by Jason Rumney's avatar Jason Rumney
Browse files

(w32font_open_internal): Prefer truetype fonts unless

'raster' specified.
parent e887f2ac
2008-05-29 Jason Rumney <jasonr@gnu.org>
* w32font.c (w32font_open_internal): Prefer truetype fonts unless
'raster' specified.
2008-05-29 Juanma Barranquero <lekktu@gmail.com>
* xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
......
......@@ -772,6 +772,12 @@ w32font_open_internal (f, font_entity, pixel_size, font_object)
bzero (&logfont, sizeof (logfont));
fill_in_logfont (f, &logfont, font_entity);
/* Prefer truetype fonts, to avoid known problems with type1 fonts, and
limitations in bitmap fonts. */
val = AREF (font_entity, FONT_FOUNDRY_INDEX);
if (!EQ (val, Qraster))
logfont.lfOutPrecision = OUT_TT_PRECIS;
size = XINT (AREF (font_entity, FONT_SIZE_INDEX));
if (!size)
size = pixel_size;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment