changeset 95384:c510339c1817

(w32font_open_internal): Prefer truetype fonts unless 'raster' specified.
author Jason Rumney <jasonr@gnu.org>
date Thu, 29 May 2008 16:12:24 +0000
parents 9b1b0bc934d4
children b2f7038f717d
files src/w32font.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32font.c	Thu May 29 13:03:39 2008 +0000
+++ b/src/w32font.c	Thu May 29 16:12:24 2008 +0000
@@ -772,6 +772,12 @@
   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;