if (prop < FONT_SPEC_MAX)
val = Fcons (entity, val);
}
- return val;
+ return Fnreverse (val);
}
int j;
font_entity = AREF (entities, i);
+#if 0
+ /* The following code is intended to avoid checking of
+ font_has_char repeatedly for bitmap fonts that differs only
+ in pixelsize. But, it doesn't work well if fontconfig is
+ configured to find BDF/PFC fonts. */
if (i > 0)
{
for (j = FONT_FOUNDRY_INDEX; j <= FONT_REGISTRY_INDEX; j++)
}
for (j = FONT_FOUNDRY_INDEX; j <= FONT_REGISTRY_INDEX; j++)
props[j] = AREF (font_entity, j);
+#endif
result = font_has_char (f, font_entity, c);
if (result > 0)
return font_entity;
{
Lisp_Object entity;
- entity = font_find_for_lface (f, attrs, spec, -1);
+ /* We assume that a font that supports 'A' supports ASCII chars. */
+ entity = font_find_for_lface (f, attrs, spec, 'A');
if (NILP (entity))
{
/* No font is listed for SPEC, but each font-backend may have