diff options
author | Kenichi Handa <handa@m17n.org> | 2006-06-06 03:51:27 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2006-06-06 03:51:27 +0000 |
commit | 7f907f7cdce2a7a05b324d2112acdf0b4e5c4dc5 (patch) | |
tree | 2d30a30c3d472be75a015df9783bdf12fd6e43b2 /src/fontset.h | |
parent | 86840809690d05eac124c0ebdbb8f85eff9f711d (diff) | |
download | emacs-7f907f7cdce2a7a05b324d2112acdf0b4e5c4dc5.tar.gz |
(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.h | 18 |
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 @@ 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 @@ extern Lisp_Object Vvertical_centering_font_regexp; ? (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 |