summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorAlex Larsson <alexl@redhat.com>2001-11-19 00:54:43 +0000
committerAlexander Larsson <alexl@src.gnome.org>2001-11-19 00:54:43 +0000
commit2d283d659416ebf06a6c5397eca41cd91aaee68f (patch)
treeef82d56f27c56be31cbbfaeb98d2c7b732c94bc4 /pango
parenta409a746f1fdec933cd1be897cc6078e6050690f (diff)
downloadpango-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')
-rw-r--r--pango/pangoft2.c7
-rw-r--r--pango/pangoft2.h2
2 files changed, 5 insertions, 4 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 ());
diff --git a/pango/pangoft2.h b/pango/pangoft2.h
index c792d797..dc467b74 100644
--- a/pango/pangoft2.h
+++ b/pango/pangoft2.h
@@ -32,7 +32,7 @@ G_BEGIN_DECLS
#define PANGO_RENDER_TYPE_FT2 "PangoRenderFT2"
/* Calls for applications */
-PangoContext *pango_ft2_get_context (double dpi);
+PangoContext *pango_ft2_get_context (double dpi_x, double dpi_y);
void pango_ft2_render (FT_Bitmap *bitmap,
PangoFont *font,