annotate src/w32font.h @ 91840:53e2227d1fae

(uniquify-buffer-base-name): New function. Suggested by Stefan Monnier <monnier@iro.umontreal.ca>.
author Juanma Barranquero <lekktu@gmail.com>
date Thu, 14 Feb 2008 14:32:44 +0000
parents 3081b8f848bc
children a371504924ef
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
91206
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
1 /* Shared GDI and Uniscribe Font backend declarations for the W32 API.
91448
a9ab858a06c6 Update copyright years and GPL version.
Glenn Morris <rgm@gnu.org>
parents: 91254
diff changeset
2 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
91206
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
3
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
4 This file is part of GNU Emacs.
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
5
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
6 GNU Emacs is free software; you can redistribute it and/or modify
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by
91448
a9ab858a06c6 Update copyright years and GPL version.
Glenn Morris <rgm@gnu.org>
parents: 91254
diff changeset
8 the Free Software Foundation; either version 3, or (at your option)
91206
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
9 any later version.
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
10
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
11 GNU Emacs is distributed in the hope that it will be useful,
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
14 GNU General Public License for more details.
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
15
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
17 along with GNU Emacs; see the file COPYING. If not, write to
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
19 Boston, MA 02110-1301, USA. */
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
20
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
21 #ifndef EMACS_W32FONT_H
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
22 #define EMACS_W32FONT_H
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
23
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
24
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
25 /* Bit 17 of ntmFlags in NEWTEXTMETRIC is set for Postscript OpenType fonts,
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
26 bit 18 for Truetype OpenType fonts. */
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
27 #define NTMFLAGS_OPENTYPE 0x60000
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
28
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
29 /* The actual structure for a w32 font, that can be cast to struct font.
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
30 The Uniscribe backend extends this. */
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
31 struct w32font_info
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
32 {
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
33 struct font font;
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
34 TEXTMETRIC metrics;
91593
3081b8f848bc * w32font.c (w32font_text_extents): Fill in lbearing metric.
Jason Rumney <jasonr@gnu.org>
parents: 91448
diff changeset
35 struct font_metrics ascii_metrics[96];
91206
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
36 };
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
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
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
39 Lisp_Object w32font_list_internal P_ ((Lisp_Object frame,
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
40 Lisp_Object font_spec,
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
41 int opentype_only));
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
42 Lisp_Object w32font_match_internal P_ ((Lisp_Object frame,
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
43 Lisp_Object font_spec,
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
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
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
47 void w32font_close P_ ((FRAME_PTR f, struct font *font));
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
48 int w32font_has_char P_ ((Lisp_Object entity, int c));
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
49 unsigned w32font_encode_char P_ ((struct font *font, int c));
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
50 int w32font_text_extents P_ ((struct font *font, unsigned *code, int nglyphs,
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
51 struct font_metrics *metrics));
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
52 int w32font_draw P_ ((struct glyph_string *s, int from, int to,
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
53 int x, int y, int with_background));
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
54
d0a0c2702364 New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
55 #endif
91213
aaf0103455b0 Add arch tagline
Miles Bader <miles@gnu.org>
parents: 91210
diff changeset
56
aaf0103455b0 Add arch tagline
Miles Bader <miles@gnu.org>
parents: 91210
diff changeset
57 /* arch-tag: ef9d9675-a2a5-4d01-9526-815e9a3da7cb
aaf0103455b0 Add arch tagline
Miles Bader <miles@gnu.org>
parents: 91210
diff changeset
58 (do not change this comment) */