aboutsummaryrefslogtreecommitdiffstats
path: root/src/fontset.h
diff options
context:
space:
mode:
authorKenichi Handa2006-06-06 03:51:27 +0000
committerKenichi Handa2006-06-06 03:51:27 +0000
commit7f907f7cdce2a7a05b324d2112acdf0b4e5c4dc5 (patch)
tree2d30a30c3d472be75a015df9783bdf12fd6e43b2 /src/fontset.h
parent86840809690d05eac124c0ebdbb8f85eff9f711d (diff)
downloademacs-7f907f7cdce2a7a05b324d2112acdf0b4e5c4dc5.tar.gz
emacs-7f907f7cdce2a7a05b324d2112acdf0b4e5c4dc5.zip
(FONT_INFO_FROM_FACE): New macro.
(face_for_font, new_fontset_from_font) (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
Diffstat (limited to 'src/fontset.h')
-rw-r--r--src/fontset.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/fontset.h b/src/fontset.h
index ec9552ef436..3ce5e9ea7fa 100644
--- a/src/fontset.h
+++ b/src/fontset.h
@@ -4,7 +4,7 @@
4 Copyright (C) 1995, 1997, 2000 4 Copyright (C) 1995, 1997, 2000
5 National Institute of Advanced Industrial Science and Technology (AIST) 5 National Institute of Advanced Industrial Science and Technology (AIST)
6 Registration Number H14PRO021 6 Registration Number H14PRO021
7 Copyright (C) 2003 7 Copyright (C) 2003, 2006
8 National Institute of Advanced Industrial Science and Technology (AIST) 8 National Institute of Advanced Industrial Science and Technology (AIST)
9 Registration Number H13PRO009 9 Registration Number H13PRO009
10 10
@@ -243,10 +243,26 @@ extern Lisp_Object Vvertical_centering_font_regexp;
243 ? (FRAME_X_DISPLAY_INFO ((F))->font_table + (ID)) \ 243 ? (FRAME_X_DISPLAY_INFO ((F))->font_table + (ID)) \
244 : 0) 244 : 0)
245 245
246#ifdef USE_FONT_BACKEND
247#define FONT_INFO_FROM_FACE(F, FACE) \
248 (enable_font_backend ? (FACE)->font_info \
249 : FONT_INFO_FROM_ID ((F), (FACE)->font_info_id))
250#else /* not USE_FONT_BACKEND */
251#define FONT_INFO_FROM_FACE(F, FACE) \
252 FONT_INFO_FROM_ID ((F), (FACE)->font_info_id)
253#endif /* not USE_FONT_BACKEND */
254
246extern Lisp_Object fontset_name P_ ((int)); 255extern Lisp_Object fontset_name P_ ((int));
247extern Lisp_Object fontset_ascii P_ ((int)); 256extern Lisp_Object fontset_ascii P_ ((int));
248extern int fontset_height P_ ((int)); 257extern int fontset_height P_ ((int));
249 258
259#ifdef USE_FONT_BACKEND
260struct font;
261extern int face_for_font P_ ((struct frame *, struct font *, struct face *));
262extern int new_fontset_from_font P_ ((FRAME_PTR, Lisp_Object));
263extern struct font *fontset_ascii_font P_ ((FRAME_PTR, int));
264#endif /* USE_FONT_BACKEND */
265
250#endif /* EMACS_FONTSET_H */ 266#endif /* EMACS_FONTSET_H */
251 267
252/* arch-tag: c27cef7b-3cab-488a-8398-7a4daa96bb77 268/* arch-tag: c27cef7b-3cab-488a-8398-7a4daa96bb77