comparison src/fontset.h @ 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 c5406394f567
children f1cd4833b97a
comparison
equal deleted inserted replaced
90408:cc49fe5026c6 90409:0347a454915c
2 Copyright (C) 1998, 2002, 2003, 2004, 2005, 2 Copyright (C) 1998, 2002, 2003, 2004, 2005,
3 2006 Free Software Foundation, Inc. 3 2006 Free Software Foundation, Inc.
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
11 This file is part of GNU Emacs. 11 This file is part of GNU Emacs.
12 12
241 #define FONT_INFO_FROM_ID(F, ID) \ 241 #define FONT_INFO_FROM_ID(F, ID) \
242 (((ID) >= 0 && (ID) < FRAME_X_DISPLAY_INFO ((F))->font_table_size) \ 242 (((ID) >= 0 && (ID) < FRAME_X_DISPLAY_INFO ((F))->font_table_size) \
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
246 extern Lisp_Object fontset_name P_ ((int)); 255 extern Lisp_Object fontset_name P_ ((int));
247 extern Lisp_Object fontset_ascii P_ ((int)); 256 extern Lisp_Object fontset_ascii P_ ((int));
248 extern int fontset_height P_ ((int)); 257 extern int fontset_height P_ ((int));
249 258
259 #ifdef USE_FONT_BACKEND
260 struct font;
261 extern int face_for_font P_ ((struct frame *, struct font *, struct face *));
262 extern int new_fontset_from_font P_ ((FRAME_PTR, Lisp_Object));
263 extern 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
253 (do not change this comment) */ 269 (do not change this comment) */