]> git.eshelyaron.com Git - emacs.git/commitdiff
(add_font_entity_to_list): Don't add non-opentype
authorJason Rumney <jasonr@gnu.org>
Tue, 20 May 2008 23:37:27 +0000 (23:37 +0000)
committerJason Rumney <jasonr@gnu.org>
Tue, 20 May 2008 23:37:27 +0000 (23:37 +0000)
truetype fonts to opentype list.

src/ChangeLog
src/w32font.c

index 7348347a38020f82bee5aa2f0a1aa52f67d895bb..7b9f9931d89bc29612522b92df1c86988fc25095 100644 (file)
@@ -1,3 +1,8 @@
+2008-05-20  Jason Rumney  <jasonr@gnu.org>
+
+        * w32font.c (add_font_entity_to_list): Don't add non-opentype
+        truetype fonts to opentype list.
+
 2008-05-20  Juanma Barranquero  <lekktu@gmail.com>
 
        * fontset.c (Ffontset_info): Doc fix.
index ea00f8b0a97b2092e47fd9ff33474c56914ba050..4ce9e4c8459a6a5f1660ba863499f576fe0e54e5 100644 (file)
@@ -1311,8 +1311,7 @@ add_font_entity_to_list (logical_font, physical_font, font_type, lParam)
   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,