changeset 95146:a8bf1f66a719

(add_font_entity_to_list): Don't add non-opentype truetype fonts to opentype list.
author Jason Rumney <jasonr@gnu.org>
date Tue, 20 May 2008 23:37:03 +0000
parents 096cfec41046
children 5d23775277d2
files src/w32font.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32font.c	Tue May 20 17:03:30 2008 +0000
+++ b/src/w32font.c	Tue May 20 23:37:03 2008 +0000
@@ -1311,8 +1311,7 @@
   Lisp_Object backend = match_data->opentype_only ? Quniscribe : Qgdi;
 
   if ((!match_data->opentype_only
-       || (physical_font->ntmTm.ntmFlags & NTMFLAGS_OPENTYPE)
-       || (font_type & TRUETYPE_FONTTYPE))
+       || (physical_font->ntmTm.ntmFlags & NTMFLAGS_OPENTYPE))
       && logfonts_match (&logical_font->elfLogFont, &match_data->pattern)
       && font_matches_spec (font_type, physical_font,
                             match_data->orig_font_spec, backend,