+2009-06-10 Kenichi Handa <handa@m17n.org>
+
+ * font.c (font_parse_family_registry): Fix for one-char foundry.
+ (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
+
2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
* process.c (status_message): Fix handling of multibyte signal
p1 = index (p0, '-');
if (p1)
{
- if ((*p0 != '*' || p1 - p0 > 1)
+ if ((*p0 != '*' && p1 - p0 > 0)
&& NILP (AREF (font_spec, FONT_FOUNDRY_INDEX)))
Ffont_put (font_spec, QCfoundry, font_intern_prop (p0, p1 - p0, 1));
p1++;
USE_SAFE_ALLOCA;
len = ASIZE (vec);
- for (i = FONT_WEIGHT_INDEX; i <= FONT_DPI_INDEX; i++)
+ for (i = FONT_WEIGHT_INDEX; i <= FONT_AVGWIDTH_INDEX; i++)
prefer_prop[i] = AREF (prefer, i);
if (FLOATP (prefer_prop[FONT_SIZE_INDEX]))
prefer_prop[FONT_SIZE_INDEX]