summaryrefslogtreecommitdiff
path: root/pango/pangocairo.h
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-06-11 03:00:39 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-06-11 03:00:39 +0000
commitc82dcf4c9cda78350bc844f6187bac5df87f5444 (patch)
tree84e809493cffad93cb3fcc0f65558499e2c6f405 /pango/pangocairo.h
parent1bc615b0a5863c5680770171f014a1f99c975a9e (diff)
downloadpango-c82dcf4c9cda78350bc844f6187bac5df87f5444.tar.gz
Bug 347236 – provide pango_cairo_font_get_scaled_font Bug 347235 – Add
2007-06-10 Behdad Esfahbod <behdad@gnome.org> Bug 347236 – provide pango_cairo_font_get_scaled_font Bug 347235 – Add pango_cairo_font_map_get_font_type Bug 353291 – Provide pango_cairo_font_map_new_for_font_type * pango/pangocairo-font.c: New public API: pango_cairo_font_get_scaled_font() * pango/pangocairo-fontmap.c: New public API: pango_cairo_font_map_new_for_font_type() pango_cairo_font_map_get_font_type() * pango/pangocairo-fcfontmap.c: Implement get_font_type() method. * pango/pangocairo.h: * pango/pangocairo-private.h: * docs/pango-sections.txt: * docs/tmpl/pangocairo.sgml: * pango/pangocairo.def: Update. svn path=/trunk/; revision=2336
Diffstat (limited to 'pango/pangocairo.h')
-rw-r--r--pango/pangocairo.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/pango/pangocairo.h b/pango/pangocairo.h
index d8085112..2e75b28d 100644
--- a/pango/pangocairo.h
+++ b/pango/pangocairo.h
@@ -52,16 +52,23 @@ typedef void (* PangoCairoShapeRendererFunc) (cairo_t *cr,
/*
* PangoCairoFontMap
*/
-GType pango_cairo_font_map_get_type (void);
+GType pango_cairo_font_map_get_type (void);
-PangoFontMap *pango_cairo_font_map_new (void);
-PangoFontMap *pango_cairo_font_map_get_default (void);
+PangoFontMap *pango_cairo_font_map_new (void);
+PangoFontMap *pango_cairo_font_map_new_for_font_type (cairo_font_type_t fonttype);
+PangoFontMap *pango_cairo_font_map_get_default (void);
+cairo_font_type_t pango_cairo_font_map_get_font_type (PangoCairoFontMap *fontmap);
void pango_cairo_font_map_set_resolution (PangoCairoFontMap *fontmap,
double dpi);
double pango_cairo_font_map_get_resolution (PangoCairoFontMap *fontmap);
PangoContext *pango_cairo_font_map_create_context (PangoCairoFontMap *fontmap);
+/*
+ * PangoFont methods available to PangoCairo fonts
+ */
+cairo_scaled_font_t *pango_cairo_font_get_scaled_font (PangoFont *font);
+
/* Update a Pango context for the current state of a cairo context
*/
void pango_cairo_update_context (cairo_t *cr,