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
6570a1c4
Commit
6570a1c4
authored
Jan 29, 2009
by
Kenichi Handa
Browse files
(xftfont_has_char): New function.
(syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
parent
d72a4afa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
src/ChangeLog
src/ChangeLog
+5
-0
src/xftfont.c
src/xftfont.c
+17
-0
No files found.
src/ChangeLog
View file @
6570a1c4
2009-01-29 Kenichi Handa <handa@m17n.org>
* xftfont.c (xftfont_has_char): New function.
(syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
* nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
...
...
src/xftfont.c
View file @
6570a1c4
...
...
@@ -144,6 +144,7 @@ static Lisp_Object xftfont_open P_ ((FRAME_PTR, Lisp_Object, int));
static
void
xftfont_close
P_
((
FRAME_PTR
,
struct
font
*
));
static
int
xftfont_prepare_face
P_
((
FRAME_PTR
,
struct
face
*
));
static
void
xftfont_done_face
P_
((
FRAME_PTR
,
struct
face
*
));
static
int
xftfont_has_char
P_
((
Lisp_Object
,
int
));
static
unsigned
xftfont_encode_char
P_
((
struct
font
*
,
int
));
static
int
xftfont_text_extents
P_
((
struct
font
*
,
unsigned
*
,
int
,
struct
font_metrics
*
));
...
...
@@ -466,6 +467,21 @@ xftfont_done_face (f, face)
}
}
static
int
xftfont_has_char
(
font
,
c
)
Lisp_Object
font
;
int
c
;
{
struct
xftfont_info
*
xftfont_info
;
if
(
FONT_ENTITY_P
(
font
))
return
ftfont_driver
.
has_char
(
font
,
c
);
xftfont_info
=
(
struct
xftfont_info
*
)
XFONT_OBJECT
(
font
);
return
(
XftCharExists
(
xftfont_info
->
display
,
xftfont_info
->
xftfont
,
(
FcChar32
)
c
)
==
FcTrue
);
}
static
unsigned
xftfont_encode_char
(
font
,
c
)
struct
font
*
font
;
...
...
@@ -604,6 +620,7 @@ syms_of_xftfont ()
xftfont_driver
.
close
=
xftfont_close
;
xftfont_driver
.
prepare_face
=
xftfont_prepare_face
;
xftfont_driver
.
done_face
=
xftfont_done_face
;
xftfont_driver
.
has_char
=
xftfont_has_char
;
xftfont_driver
.
encode_char
=
xftfont_encode_char
;
xftfont_driver
.
text_extents
=
xftfont_text_extents
;
xftfont_driver
.
draw
=
xftfont_draw
;
...
...
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