Git init
[external/pango1.0.git] / pango / pangoxft-private.h
1 /* Pango
2  * pangox-private.h:
3  *
4  * Copyright (C) 2000 Red Hat Software
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library 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 GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21
22 #ifndef __PANGOXFT_PRIVATE_H__
23 #define __PANGOXFT_PRIVATE_H__
24
25 #include <pango/pangoxft.h>
26 #include <pango/pango-renderer.h>
27
28 G_BEGIN_DECLS
29
30 struct _PangoXftFont
31 {
32   PangoFcFont parent_instance;
33
34   XftFont *xft_font;                /* created on demand */
35   PangoFont *mini_font;             /* font used to display missing glyphs */
36
37   guint mini_width;                 /* metrics for missing glyph drawing */
38   guint mini_height;
39   guint mini_pad;
40
41   GHashTable *glyph_info;           /* Used only when we can't get
42                                      * glyph extents out of Xft because
43                                      * we have a transformation in effect
44                                      */
45 };
46
47 PangoXftFont *_pango_xft_font_new          (PangoXftFontMap  *xftfontmap,
48                                             FcPattern        *pattern);
49
50 void          _pango_xft_font_map_get_info (PangoFontMap     *fontmap,
51                                             Display         **display,
52                                             int              *screen);
53
54 PangoRenderer *_pango_xft_font_map_get_renderer (PangoXftFontMap *xftfontmap);
55
56 PangoFont *_pango_xft_font_get_mini_font (PangoXftFont *xfont);
57
58 G_END_DECLS
59
60 #endif /* __PANGOXFT_PRIVATE_H__ */