Mercurial > emacs
annotate src/w32font.h @ 91260:75f89f349f70
(w32font_text_extents): Dereference selected_frame.
(w32_enumfont_pattern_entity): Map generic family to adstyle using
most common hyphenless variation.
(logfonts_match): Check generic family.
(font_matches_spec): Don't check generic family here.
(fill_in_logfont): Set generic family based on adstyle.
+ changes to sans-serif constants to avoid hyphen (for xfld compatibility)
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Thu, 20 Dec 2007 00:10:57 +0000 |
parents | 21661755910b |
children | a9ab858a06c6 |
rev | line source |
---|---|
91206 | 1 /* Shared GDI and Uniscribe Font backend declarations for the W32 API. |
2 Copyright (C) 2007 Free Software Foundation, Inc. | |
3 | |
4 This file is part of GNU Emacs. | |
5 | |
6 GNU Emacs is free software; you can redistribute it and/or modify | |
7 it under the terms of the GNU General Public License as published by | |
8 the Free Software Foundation; either version 2, or (at your option) | |
9 any later version. | |
10 | |
11 GNU Emacs is distributed in the hope that it will be useful, | |
12 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 GNU General Public License for more details. | |
15 | |
16 You should have received a copy of the GNU General Public License | |
17 along with GNU Emacs; see the file COPYING. If not, write to | |
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
19 Boston, MA 02110-1301, USA. */ | |
20 | |
21 #ifndef EMACS_W32FONT_H | |
22 #define EMACS_W32FONT_H | |
23 | |
24 | |
25 /* Bit 17 of ntmFlags in NEWTEXTMETRIC is set for Postscript OpenType fonts, | |
26 bit 18 for Truetype OpenType fonts. */ | |
27 #define NTMFLAGS_OPENTYPE 0x60000 | |
28 | |
29 /* The actual structure for a w32 font, that can be cast to struct font. | |
30 The Uniscribe backend extends this. */ | |
31 struct w32font_info | |
32 { | |
33 struct font font; | |
34 TEXTMETRIC metrics; | |
35 struct frame *owning_frame; | |
36 }; | |
37 | |
91254
21661755910b
(w32font_get_cache): Update declaration.
Jason Rumney <jasonr@gnu.org>
parents:
91213
diff
changeset
|
38 Lisp_Object w32font_get_cache P_ ((FRAME_PTR fe)); |
91206 | 39 Lisp_Object w32font_list_internal P_ ((Lisp_Object frame, |
40 Lisp_Object font_spec, | |
41 int opentype_only)); | |
42 Lisp_Object w32font_match_internal P_ ((Lisp_Object frame, | |
43 Lisp_Object font_spec, | |
44 int opentype_only)); | |
91210
4de7fe00ac26
(w32font_open_internal): New function.
Jason Rumney <jasonr@gnu.org>
parents:
91206
diff
changeset
|
45 int w32font_open_internal P_ ((FRAME_PTR f, Lisp_Object font_entity, |
4de7fe00ac26
(w32font_open_internal): New function.
Jason Rumney <jasonr@gnu.org>
parents:
91206
diff
changeset
|
46 int pixel_size, struct w32font_info *w32_font)); |
91206 | 47 void w32font_close P_ ((FRAME_PTR f, struct font *font)); |
48 int w32font_has_char P_ ((Lisp_Object entity, int c)); | |
49 unsigned w32font_encode_char P_ ((struct font *font, int c)); | |
50 int w32font_text_extents P_ ((struct font *font, unsigned *code, int nglyphs, | |
51 struct font_metrics *metrics)); | |
52 int w32font_draw P_ ((struct glyph_string *s, int from, int to, | |
53 int x, int y, int with_background)); | |
54 | |
55 #endif | |
91213 | 56 |
57 /* arch-tag: ef9d9675-a2a5-4d01-9526-815e9a3da7cb | |
58 (do not change this comment) */ |