if (style)
font_style_to_flags (style, &m);
- if ((pattern->specified & FSPEC_FAMILY) &&
- strcmp ((char *) &pattern->family, family))
+ if ((pattern->specified & FSPEC_FAMILY)
+ && strcmp ((char *) &pattern->family, family))
return false;
if (!ignore_flags_p && (pattern->specified & FSPEC_SPACING)
if (pattern->specified & FSPEC_STYLE)
return style && !strcmp (style, pattern->style);
+ /* Don't allow matching fonts with an adstyle if no style was
+ specified in the query pattern. */
+ else if (m.specified & FSPEC_STYLE)
+ return false;
if ((pattern->specified & FSPEC_WEIGHT)
&& (pattern->weight