encoding charset is ascii_compatible.
+2009-04-14 Kenichi Handa <handa@m17n.org>
+
+ * xfont.c (xfont_has_char): The font has C if C is ASCII and the
+ encoding charset is ascii_compatible.
+
+ * charset.c (Fdefine_charset_internal): Make charset
+ ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
+ code_offset is 0, and covers all ASCII characters.
+
2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
* nsselect.m (symbol_to_nsstring, clean_local_selection_data)
int c;
{
Lisp_Object registry = AREF (entity, FONT_REGISTRY_INDEX);
+ struct charset *encoding;
struct charset *repertory;
- if (font_registry_charsets (registry, NULL, &repertory) < 0)
+ if (font_registry_charsets (registry, &encoding, &repertory) < 0)
return -1;
+ if (ASCII_CHAR_P (c) && encoding->ascii_compatible_p)
+ return 1;
if (! repertory)
return -1;
return (ENCODE_CHAR (repertory, c) != CHARSET_INVALID_CODE (repertory));