changeset 90409:0347a454915c

(FONT_INFO_FROM_FACE): New macro. (face_for_font, new_fontset_from_font) (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
author Kenichi Handa <handa@m17n.org>
date Tue, 06 Jun 2006 03:51:27 +0000
parents cc49fe5026c6
children 55a58b0d3d9e
files src/fontset.h
diffstat 1 files changed, 17 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fontset.h	Tue Jun 06 03:51:12 2006 +0000
+++ b/src/fontset.h	Tue Jun 06 03:51:27 2006 +0000
@@ -4,7 +4,7 @@
    Copyright (C) 1995, 1997, 2000
      National Institute of Advanced Industrial Science and Technology (AIST)
      Registration Number H14PRO021
-   Copyright (C) 2003
+   Copyright (C) 2003, 2006
      National Institute of Advanced Industrial Science and Technology (AIST)
      Registration Number H13PRO009
 
@@ -243,10 +243,26 @@
       ? (FRAME_X_DISPLAY_INFO ((F))->font_table + (ID))			\
       : 0)
 
+#ifdef USE_FONT_BACKEND
+#define FONT_INFO_FROM_FACE(F, FACE)		\
+  (enable_font_backend ? (FACE)->font_info	\
+   : FONT_INFO_FROM_ID ((F), (FACE)->font_info_id))
+#else  /* not USE_FONT_BACKEND */
+#define FONT_INFO_FROM_FACE(F, FACE)	\
+  FONT_INFO_FROM_ID ((F), (FACE)->font_info_id)
+#endif	/* not USE_FONT_BACKEND */
+
 extern Lisp_Object fontset_name P_ ((int));
 extern Lisp_Object fontset_ascii P_ ((int));
 extern int fontset_height P_ ((int));
 
+#ifdef USE_FONT_BACKEND
+struct font;
+extern int face_for_font P_ ((struct frame *, struct font *, struct face *));
+extern int new_fontset_from_font P_ ((FRAME_PTR, Lisp_Object));
+extern struct font *fontset_ascii_font P_ ((FRAME_PTR, int));
+#endif	/* USE_FONT_BACKEND */
+
 #endif /* EMACS_FONTSET_H */
 
 /* arch-tag: c27cef7b-3cab-488a-8398-7a4daa96bb77