diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2007-07-21 00:49:55 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-07-21 00:49:55 +0000 |
commit | 2dec72327e893f8934f6876fa68d1402a68971c7 (patch) | |
tree | bd50c8c08cd2f9dd6ac43aa8f79e3284a0f00423 /pango/pangocairo.h | |
parent | 98a6f3a459c752390eb8f38899f5f03ebc4f79de (diff) | |
download | pango-2dec72327e893f8934f6876fa68d1402a68971c7.tar.gz |
Part of Bug 347236 – provide pango_cairo_font_get_scaled_font
2007-07-21 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 347236 – provide pango_cairo_font_get_scaled_font
* docs/Makefile.am:
* docs/pango-sections.txt:
* docs/tmpl/atsui-fonts.sgml:
* docs/tmpl/opentype.sgml:
* docs/tmpl/pango-engine-lang.sgml:
* docs/tmpl/pango-engine-shape.sgml:
* docs/tmpl/pangocairo.sgml:
* pango/pangoatsui.h:
* pango/pangocairo-atsuifont.h:
* pango/pangocairo-font.c (pango_cairo_font_get_scaled_font):
* pango/pangocairo-private.h:
* pango/pangocairo.h:
Export PangoCairoFont and cleanup various standard macros.
svn path=/trunk/; revision=2375
Diffstat (limited to 'pango/pangocairo.h')
-rw-r--r-- | pango/pangocairo.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/pango/pangocairo.h b/pango/pangocairo.h index 4aa27d8a..54fe031c 100644 --- a/pango/pangocairo.h +++ b/pango/pangocairo.h @@ -30,6 +30,20 @@ G_BEGIN_DECLS /** + * PangoCairoFont: + * + * #PangoCairoFont is an interface exported by fonts for + * use with Cairo. The actual type of the font will depend + * on the particular font technology Cairo was compiled to use. + * + * Since: 1.18 + **/ +typedef struct _PangoCairoFont PangoCairoFont; +#define PANGO_TYPE_CAIRO_FONT (pango_cairo_font_get_type ()) +#define PANGO_CAIRO_FONT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_CAIRO_FONT, PangoCairoFont)) +#define PANGO_IS_CAIRO_FONT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_CAIRO_FONT)) + +/** * PangoCairoFontMap: * * #PangoCairoFontMap is an interface exported by font maps for @@ -38,12 +52,11 @@ G_BEGIN_DECLS * * Since: 1.10 **/ +typedef struct _PangoCairoFontMap PangoCairoFontMap; #define PANGO_TYPE_CAIRO_FONT_MAP (pango_cairo_font_map_get_type ()) #define PANGO_CAIRO_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_CAIRO_FONT_MAP, PangoCairoFontMap)) #define PANGO_IS_CAIRO_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_CAIRO_FONT_MAP)) -typedef struct _PangoCairoFontMap PangoCairoFontMap; - typedef void (* PangoCairoShapeRendererFunc) (cairo_t *cr, PangoAttrShape *attr, gboolean do_path, @@ -65,9 +78,11 @@ double pango_cairo_font_map_get_resolution (PangoCairoFontMap *fontmap); PangoContext *pango_cairo_font_map_create_context (PangoCairoFontMap *fontmap); /* - * PangoFont methods available to PangoCairo fonts + * PangoCairoFont */ -cairo_scaled_font_t *pango_cairo_font_get_scaled_font (PangoFont *font); +GType pango_cairo_font_get_type (void) G_GNUC_CONST; + +cairo_scaled_font_t *pango_cairo_font_get_scaled_font (PangoCairoFont *font); /* Update a Pango context for the current state of a cairo context */ |