summaryrefslogtreecommitdiff
path: root/pango/pangocairo-font.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2009-01-28 22:07:30 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2009-01-28 22:07:30 +0000
commitceb03fea0dd21294e5b7eb13d8bc6b94b512037e (patch)
tree8172633fc9e1983e7f7ebf857656da7c1522b745 /pango/pangocairo-font.c
parentc436a45f4022fb8a4ac5dccc45f0c6427f332c1f (diff)
downloadpango-ceb03fea0dd21294e5b7eb13d8bc6b94b512037e.tar.gz
Remove desc argument from _pango_cairo_font_private_initialize(). Replace
2009-01-09 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-atsuifont.c (_pango_cairo_atsui_font_new): * pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new): * pango/pangocairo-font.c (_pango_cairo_font_private_initialize): * pango/pangocairo-private.h: * pango/pangocairo-win32font.c (_pango_cairo_win32_font_new): Remove desc argument from _pango_cairo_font_private_initialize(). Replace it with gravity, the only thing from desc we actually needed. This is in preparation for lazy loading of fonts in the pangofc fontmap. svn path=/trunk/; revision=2803
Diffstat (limited to 'pango/pangocairo-font.c')
-rw-r--r--pango/pangocairo-font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pangocairo-font.c b/pango/pangocairo-font.c
index 64655428..8f976b73 100644
--- a/pango/pangocairo-font.c
+++ b/pango/pangocairo-font.c
@@ -515,7 +515,7 @@ _pango_cairo_font_get_hex_box_info (PangoCairoFont *cfont)
void
_pango_cairo_font_private_initialize (PangoCairoFontPrivate *cf_priv,
PangoCairoFont *cfont,
- const PangoFontDescription *desc,
+ PangoGravity gravity,
const cairo_font_options_t *font_options,
const PangoMatrix *pango_ctm,
const cairo_matrix_t *font_matrix)
@@ -523,7 +523,7 @@ _pango_cairo_font_private_initialize (PangoCairoFontPrivate *cf_priv,
cairo_matrix_t gravity_matrix;
cf_priv->cfont = cfont;
- cf_priv->gravity = pango_font_description_get_gravity (desc);
+ cf_priv->gravity = gravity;
cf_priv->data = _pango_cairo_font_private_scaled_font_data_create ();