Commit d156542d authored by Kenichi Handa's avatar Kenichi Handa

(xfont_has_char): The font has C if C is ASCII and the

encoding charset is ascii_compatible.
parent 3620330b
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)
......
......@@ -798,10 +798,13 @@ xfont_has_char (entity, c)
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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment