characters; used in xfont.c and ftfont.c. */
Lisp_Object Qja, Qko;
+Lisp_Object QCuser_spec;
+
Lisp_Object Vfont_encoding_alist;
/* Alist of font registry symbol and the corresponding charsets
if (font_parse_name ((char *) SDATA (font_name), spec) == -1)
return Qnil;
font_put_extra (spec, QCname, font_name);
+ font_put_extra (spec, QCuser_spec, font_name);
return spec;
}
if (! FONTP (font))
return;
-#if 0
+
if (! NILP (Ffont_get (font, QCname)))
{
font = Fcopy_font_spec (font);
font_put_extra (font, QCname, Qnil);
}
-#endif
if (NILP (AREF (font, prop))
&& prop != FONT_FAMILY_INDEX
&& prop != FONT_FOUNDRY_INDEX
entity = font_open_for_lface (f, entity, attrs, spec);
if (!NILP (entity))
{
- name = Ffont_get (spec, QCname);
- if (STRINGP (name)) font_put_extra (entity, QCname, name);
+ name = Ffont_get (spec, QCuser_spec);
+ if (STRINGP (name)) font_put_extra (entity, QCuser_spec, name);
}
return entity;
}
ret = font_open_by_spec (f, spec);
/* Do not loose name originally put in. */
if (!NILP (ret))
- font_put_extra (ret, QCname, args[1]);
+ font_put_extra (ret, QCuser_spec, args[1]);
return ret;
}
DEFSYM (Qja, "ja");
DEFSYM (Qko, "ko");
+ DEFSYM (QCuser_spec, "user-spec");
+
staticpro (&null_vector);
null_vector = Fmake_vector (make_number (0), Qnil);