+2008-06-05 Kenichi Handa <handa@m17n.org>
+
+ * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
+ is unspecified.
+
+ * xfaces.c (realize_x_face): If the font-related face attributes
+ are the same as those of default face, realize a new fontset
+ from default->fontset.
+
2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
* xdisp.c (move_it_in_display_line_to): Improve the type of its args.
static int
compare_font_names (const void *name1, const void *name2)
{
- return xstrcasecmp (*(const char **) name1, *(const char **) name2);
+ return xstrcasecmp (*(const unsigned char **) name1,
+ *(const unsigned char **) name2);
}
static Lisp_Object xfont_list_pattern P_ ((Lisp_Object, Display *, char *));
}
registry = AREF (spec, FONT_REGISTRY_INDEX);
- if (NILP (registry))
- ASET (spec, FONT_REGISTRY_INDEX, Qiso8859_1);
len = font_unparse_xlfd (spec, 0, name, 256);
ASET (spec, FONT_REGISTRY_INDEX, registry);
if (len < 0)
/* Try alias. */
val = assq_no_quit (QCname, AREF (spec, FONT_EXTRA_INDEX));
if (CONSP (val) && STRINGP (XCDR (val)))
- list = xfont_list_pattern (frame, display, SDATA (XCDR (val)));
+ list = xfont_list_pattern (frame, display, (char *) SDATA (XCDR (val)));
}
return list;