Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d156542d
Commit
d156542d
authored
Apr 14, 2009
by
Kenichi Handa
Browse files
(xfont_has_char): The font has C if C is ASCII and the
encoding charset is ascii_compatible.
parent
3620330b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
src/ChangeLog
src/ChangeLog
+9
-0
src/xfont.c
src/xfont.c
+4
-1
No files found.
src/ChangeLog
View file @
d156542d
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)
...
...
src/xfont.c
View file @
d156542d
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment