diff options
author | Alex Larsson <alexl@redhat.com> | 2001-11-19 00:54:43 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2001-11-19 00:54:43 +0000 |
commit | 2d283d659416ebf06a6c5397eca41cd91aaee68f (patch) | |
tree | ef82d56f27c56be31cbbfaeb98d2c7b732c94bc4 /pango/pangoft2.c | |
parent | a409a746f1fdec933cd1be897cc6078e6050690f (diff) | |
download | pango-2d283d659416ebf06a6c5397eca41cd91aaee68f.tar.gz |
Take both dpi_x and dpi_y as arguments. Doesn't currently handle dpi_x
2001-11-18 Alex Larsson <alexl@redhat.com>
* pango/pangoft2.[ch] (pango_ft2_get_context):
Take both dpi_x and dpi_y as arguments. Doesn't currently handle
dpi_x correctly, but at least the API is in.
Diffstat (limited to 'pango/pangoft2.c')
-rw-r--r-- | pango/pangoft2.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pango/pangoft2.c b/pango/pangoft2.c index 93f1b18b..e7616abb 100644 --- a/pango/pangoft2.c +++ b/pango/pangoft2.c @@ -169,7 +169,8 @@ pango_ft2_font_get_face (PangoFont *font) /** * pango_ft2_get_context: - * @dpi: the dpi of the target device + * @dpi_x: the horizontal dpi of the target device + * @dpi_y: the vertical dpi of the target device * * Retrieves a #PangoContext appropriate for rendering with the PangoFT2 * backend. @@ -177,7 +178,7 @@ pango_ft2_font_get_face (PangoFont *font) * Return value: the new #PangoContext **/ PangoContext * -pango_ft2_get_context (double dpi) +pango_ft2_get_context (double dpi_x, double dpi_y) { PangoContext *result; static gboolean registered_modules = FALSE; @@ -191,7 +192,7 @@ pango_ft2_get_context (double dpi) pango_module_register (&_pango_included_ft2_modules[i]); } - MiniXftSetDPI (dpi); + MiniXftSetDPI (dpi_y); result = pango_context_new (); pango_context_set_font_map (result, pango_ft2_font_map_for_display ()); |