1 /* Pango
2  * pangocairo-coretext.h:
3  *
4  * Copyright (C) 2005 Imendio AB
5  * Copyright (C) 2010  Kristian Rietveld  <kris@gtk.org>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22 
23 #ifndef __PANGOCAIRO_CORETEXT_H__
24 #define __PANGOCAIRO_CORETEXT_H__
25 
26 #include "pangocoretext-private.h"
27 #include <pango/pangocairo.h>
28 #include <cairo-quartz.h>
29 
30 G_BEGIN_DECLS
31 
32 #define PANGO_TYPE_CAIRO_CORE_TEXT_FONT_MAP       (pango_cairo_core_text_font_map_get_type ())
33 #define PANGO_CAIRO_CORE_TEXT_FONT_MAP(object)    (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_CAIRO_CORE_TEXT_FONT_MAP, PangoCairoCoreTextFontMap))
34 #define PANGO_IS_CAIRO_CORE_TEXT_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_CAIRO_CORE_TEXT_FONT_MAP))
35 
36 typedef struct _PangoCairoCoreTextFontMap PangoCairoCoreTextFontMap;
37 
38 struct _PangoCairoCoreTextFontMap
39 {
40   PangoCoreTextFontMap parent_instance;
41 
42   guint serial;
43   gdouble dpi;
44 };
45 
46 _PANGO_EXTERN
47 GType pango_cairo_core_text_font_map_get_type (void) G_GNUC_CONST;
48 
49 PangoCoreTextFont *
50 _pango_cairo_core_text_font_new (PangoCairoCoreTextFontMap  *cafontmap,
51                                  PangoCoreTextFontKey       *key);
52 
53 G_END_DECLS
54 
55 #endif /* __PANGOCAIRO_CORETEXT_H__ */
56