Mercurial > emacs
comparison src/fontset.h @ 88155:d7ddb3e565de
sync with trunk
author | Henrik Enberg <henrik.enberg@telia.com> |
---|---|
date | Mon, 16 Jan 2006 00:03:54 +0000 |
parents | 23a1cea22d13 |
children |
comparison
equal
deleted
inserted
replaced
88154:8ce476d3ba36 | 88155:d7ddb3e565de |
---|---|
1 /* Header for fontset handler. | 1 /* Header for fontset handler. |
2 Copyright (C) 1995, 1997, 2000 Electrotechnical Laboratory, JAPAN. | 2 Copyright (C) 1998, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
3 Licensed to the Free Software Foundation. | 3 Copyright (C) 1995, 1997, 2000 |
4 National Institute of Advanced Industrial Science and Technology (AIST) | |
5 Registration Number H14PRO021 | |
4 | 6 |
5 This file is part of GNU Emacs. | 7 This file is part of GNU Emacs. |
6 | 8 |
7 GNU Emacs is free software; you can redistribute it and/or modify | 9 GNU Emacs is free software; you can redistribute it and/or modify |
8 it under the terms of the GNU General Public License as published by | 10 it under the terms of the GNU General Public License as published by |
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 GNU General Public License for more details. | 17 GNU General Public License for more details. |
16 | 18 |
17 You should have received a copy of the GNU General Public License | 19 You should have received a copy of the GNU General Public License |
18 along with GNU Emacs; see the file COPYING. If not, write to | 20 along with GNU Emacs; see the file COPYING. If not, write to |
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 21 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
20 Boston, MA 02111-1307, USA. */ | 22 Boston, MA 02110-1301, USA. */ |
21 | 23 |
22 #ifndef EMACS_FONTSET_H | 24 #ifndef EMACS_FONTSET_H |
23 #define EMACS_FONTSET_H | 25 #define EMACS_FONTSET_H |
24 | 26 |
25 /* This data type is used for the font_table field of window system | 27 /* This data type is used for the font_table field of window system |
53 int size; | 55 int size; |
54 | 56 |
55 /* Height of the font. On X window, this is the same as | 57 /* Height of the font. On X window, this is the same as |
56 (font->ascent + font->descent). */ | 58 (font->ascent + font->descent). */ |
57 int height; | 59 int height; |
60 | |
61 /* Width of the space glyph of the font. */ | |
62 int space_width; | |
63 | |
64 /* Average width of glyphs in the font. */ | |
65 int average_width; | |
58 | 66 |
59 /* 1 iff `vertical-centering-font-regexp' matches this font name. | 67 /* 1 iff `vertical-centering-font-regexp' matches this font name. |
60 In this case, we render characters at vartical center positions | 68 In this case, we render characters at vartical center positions |
61 of lines. */ | 69 of lines. */ |
62 int vertical_centering; | 70 int vertical_centering; |
186 extern void free_face_fontset P_ ((FRAME_PTR, struct face *)); | 194 extern void free_face_fontset P_ ((FRAME_PTR, struct face *)); |
187 extern Lisp_Object fontset_font_pattern P_ ((FRAME_PTR, int, int)); | 195 extern Lisp_Object fontset_font_pattern P_ ((FRAME_PTR, int, int)); |
188 extern int face_suitable_for_char_p P_ ((struct face *, int)); | 196 extern int face_suitable_for_char_p P_ ((struct face *, int)); |
189 extern int face_for_char P_ ((FRAME_PTR, struct face *, int)); | 197 extern int face_for_char P_ ((FRAME_PTR, struct face *, int)); |
190 extern int make_fontset_for_ascii_face P_ ((FRAME_PTR, int)); | 198 extern int make_fontset_for_ascii_face P_ ((FRAME_PTR, int)); |
199 extern void set_default_ascii_font P_ ((Lisp_Object)); | |
191 extern struct font_info *fs_load_font P_ ((struct frame *, int, char *, int, | 200 extern struct font_info *fs_load_font P_ ((struct frame *, int, char *, int, |
192 struct face *)); | 201 struct face *)); |
193 extern int fs_query_fontset P_ ((Lisp_Object, int)); | 202 extern int fs_query_fontset P_ ((Lisp_Object, int)); |
194 EXFUN (Fquery_fontset, 2); | 203 EXFUN (Fquery_fontset, 2); |
195 extern Lisp_Object list_fontsets P_ ((struct frame *, Lisp_Object, int)); | 204 extern Lisp_Object list_fontsets P_ ((struct frame *, Lisp_Object, int)); |
234 extern Lisp_Object fontset_name P_ ((int)); | 243 extern Lisp_Object fontset_name P_ ((int)); |
235 extern Lisp_Object fontset_ascii P_ ((int)); | 244 extern Lisp_Object fontset_ascii P_ ((int)); |
236 extern int fontset_height P_ ((int)); | 245 extern int fontset_height P_ ((int)); |
237 | 246 |
238 #endif /* EMACS_FONTSET_H */ | 247 #endif /* EMACS_FONTSET_H */ |
248 | |
249 /* arch-tag: c27cef7b-3cab-488a-8398-7a4daa96bb77 | |
250 (do not change this comment) */ |