+2000-06-08 Kenichi Handa <handa@etl.go.jp>
+
+ * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
+ charset.
+
2000-06-07 Gerd Moellmann <gerd@gnu.org>
* window.c (displayed_window_lines): Take empty lines at
CHARACTER may be a cons; (FROM . TO), where FROM and TO are\n\
non-generic characters. In that case, use FONTNAME\n\
for all characters in the range FROM and TO (inclusive).\n\
+CHARACTER may be a charset. In that case, use FONTNAME\n\
+for all character in the charsets.\n\
\n\
FONTNAME may be a cons; (FAMILY . REGISTRY), where FAMILY is a family\n\
name of a font, REGSITRY is a registry name of a font.")
&& (SINGLE_BYTE_CHAR_P (from) || SINGLE_BYTE_CHAR_P (to)))
error ("Can't change font for a single byte character");
}
+ else if (SYMBOLP (character))
+ {
+ elt = Fget (character, Qcharset);
+ if (!VECTORP (elt) || ASIZE (elt) < 1 || !NATNUMP (AREF (elt, 0)))
+ error ("Invalid charset: %s", (XSYMBOL (character)->name)->data);
+ from = MAKE_CHAR (XINT (AREF (elt, 0)), 0, 0);
+ to = from;
+ }
else
{
CHECK_NUMBER (character, 1);