# HG changeset patch # User Jason Rumney # Date 1211326623 0 # Node ID a8bf1f66a7197332404eebc8c9b189a953d23a6d # Parent 096cfec410466b2ee9ee1d66b6fa4e42fde337e8 (add_font_entity_to_list): Don't add non-opentype truetype fonts to opentype list. diff -r 096cfec41046 -r a8bf1f66a719 src/w32font.c --- 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,