diff options
| author | Dmitry Antipov | 2013-08-01 14:33:25 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-08-01 14:33:25 +0400 |
| commit | fdb396e222923dc98d46c170381c6b33dc1e8d99 (patch) | |
| tree | 9cf9c6074b8386eec0f9e7d0e610b98447894d4a /src/ftfont.c | |
| parent | 2f935d86fd7aa551e2c61d71c14a1c1a8b3ba707 (diff) | |
| download | emacs-fdb396e222923dc98d46c170381c6b33dc1e8d99.tar.gz emacs-fdb396e222923dc98d46c170381c6b33dc1e8d99.zip | |
Avoid redundant Lisp_Object <-> struct frame conversions in font API.
* font.h (struct font_driver): Change list, match, and list_family
functions to accept struct frame * as first arg.
* font.c (font_score, font_compare, font_sort_entities): Remove
prototypes.
(font_sort_entities, font_list_entities, font_select_entity):
(font_find_for_lface, Flist_fonts, Ffont_family_list): Adjust to
match font API change.
* xfont.c (xfont_list, xfont_match, xfont_list_family):
* ftfont.c (ftfont_list, ftfont_match, ftfont_list_family):
* ftxfont.c (ftxfont_list, ftxfont_match):
* xftfont.c (xftfont_list, xftfont_match):
* nsfont.m (nsfont_list, nsfont_match, nsfont_list_family):
* w32font.c (w32font_list, w32font_match, w32font_list):
(w32font_list_internal, w32_font_match_internal): Likewise.
* xfaces.c (Fx_family_fonts): Adjust user.
Diffstat (limited to 'src/ftfont.c')
| -rw-r--r-- | src/ftfont.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ftfont.c b/src/ftfont.c index 10090cb3bda..14896e3f668 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -494,9 +494,9 @@ ftfont_get_otf (struct ftfont_info *ftfont_info) | |||
| 494 | #endif /* HAVE_LIBOTF */ | 494 | #endif /* HAVE_LIBOTF */ |
| 495 | 495 | ||
| 496 | static Lisp_Object ftfont_get_cache (FRAME_PTR); | 496 | static Lisp_Object ftfont_get_cache (FRAME_PTR); |
| 497 | static Lisp_Object ftfont_list (Lisp_Object, Lisp_Object); | 497 | static Lisp_Object ftfont_list (struct frame *, Lisp_Object); |
| 498 | static Lisp_Object ftfont_match (Lisp_Object, Lisp_Object); | 498 | static Lisp_Object ftfont_match (struct frame *, Lisp_Object); |
| 499 | static Lisp_Object ftfont_list_family (Lisp_Object); | 499 | static Lisp_Object ftfont_list_family (struct frame *); |
| 500 | static Lisp_Object ftfont_open (FRAME_PTR, Lisp_Object, int); | 500 | static Lisp_Object ftfont_open (FRAME_PTR, Lisp_Object, int); |
| 501 | static void ftfont_close (FRAME_PTR, struct font *); | 501 | static void ftfont_close (FRAME_PTR, struct font *); |
| 502 | static int ftfont_has_char (Lisp_Object, int); | 502 | static int ftfont_has_char (Lisp_Object, int); |
| @@ -884,7 +884,7 @@ ftfont_spec_pattern (Lisp_Object spec, char *otlayout, struct OpenTypeSpec **ots | |||
| 884 | } | 884 | } |
| 885 | 885 | ||
| 886 | static Lisp_Object | 886 | static Lisp_Object |
| 887 | ftfont_list (Lisp_Object frame, Lisp_Object spec) | 887 | ftfont_list (struct frame *f, Lisp_Object spec) |
| 888 | { | 888 | { |
| 889 | Lisp_Object val = Qnil, family, adstyle; | 889 | Lisp_Object val = Qnil, family, adstyle; |
| 890 | int i; | 890 | int i; |
| @@ -1080,7 +1080,7 @@ ftfont_list (Lisp_Object frame, Lisp_Object spec) | |||
| 1080 | } | 1080 | } |
| 1081 | 1081 | ||
| 1082 | static Lisp_Object | 1082 | static Lisp_Object |
| 1083 | ftfont_match (Lisp_Object frame, Lisp_Object spec) | 1083 | ftfont_match (struct frame *f, Lisp_Object spec) |
| 1084 | { | 1084 | { |
| 1085 | Lisp_Object entity = Qnil; | 1085 | Lisp_Object entity = Qnil; |
| 1086 | FcPattern *pattern, *match = NULL; | 1086 | FcPattern *pattern, *match = NULL; |
| @@ -1130,7 +1130,7 @@ ftfont_match (Lisp_Object frame, Lisp_Object spec) | |||
| 1130 | } | 1130 | } |
| 1131 | 1131 | ||
| 1132 | static Lisp_Object | 1132 | static Lisp_Object |
| 1133 | ftfont_list_family (Lisp_Object frame) | 1133 | ftfont_list_family (struct frame *f) |
| 1134 | { | 1134 | { |
| 1135 | Lisp_Object list = Qnil; | 1135 | Lisp_Object list = Qnil; |
| 1136 | FcPattern *pattern = NULL; | 1136 | FcPattern *pattern = NULL; |