summaryrefslogtreecommitdiff
path: root/pango/pangoft2.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-07-03 22:30:36 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-07-03 22:30:36 +0000
commit145341236ea2dad9e5a0e7270d0b6dc7d9b09770 (patch)
tree0b915833a0191f13c8b410de1db69a50928f471c /pango/pangoft2.c
parent325238c642d9f89a4e46df6cf1bd6c9942097c1b (diff)
downloadpango-145341236ea2dad9e5a0e7270d0b6dc7d9b09770.tar.gz
New function to allow tweaking of FcPattern default substitution (for
Mon Jul 1 19:45:10 2002 Owen Taylor <otaylor@redhat.com> * pango/pangoxft-fontmap.c (pango_xft_set_default_substitute): New function to allow tweaking of FcPattern default substitution (for XSETTINGS support.) * pango/pangoft2-fontmap.c pango/pangoft2.[ch] pango/pangoft2-private.h: Rationalize DPI and context creation by adding: pango_ft2_font_map_new() pango_ft2_font_map_set_resolution() pango_ft2_font_map_set_default_substitute() pango_ft2_font_map_create_context()
Diffstat (limited to 'pango/pangoft2.c')
-rw-r--r--pango/pangoft2.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/pango/pangoft2.c b/pango/pangoft2.c
index cd60be74..d18f3b7a 100644
--- a/pango/pangoft2.c
+++ b/pango/pangoft2.c
@@ -33,7 +33,6 @@
#include "pango-utils.h"
#include "pangoft2.h"
#include "pangoft2-private.h"
-#include "modules.h"
#define PANGO_TYPE_FT2_FONT (pango_ft2_font_get_type ())
#define PANGO_FT2_FONT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FT2_FONT, PangoFT2Font))
@@ -218,49 +217,6 @@ pango_ft2_font_get_face (PangoFont *font)
return face;
}
-static double pango_ft2_resolution = 75.0;
-
-void
-pango_ft2_default_substitute (FcPattern *pattern)
-{
- FcValue v;
- if (FcPatternGet (pattern, FC_DPI, 0, &v) == FcResultNoMatch)
- FcPatternAddDouble (pattern, FC_DPI, pango_ft2_resolution);
-}
-
-/**
- * pango_ft2_get_context:
- * @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.
- *
- * Return value: the new #PangoContext
- **/
-PangoContext *
-pango_ft2_get_context (double dpi_x, double dpi_y)
-{
- PangoContext *result;
- static gboolean registered_modules = FALSE;
- int i;
-
- if (!registered_modules)
- {
- registered_modules = TRUE;
-
- for (i = 0; _pango_included_ft2_modules[i].list; i++)
- pango_module_register (&_pango_included_ft2_modules[i]);
- }
-
- pango_ft2_resolution = dpi_y;
-
- result = pango_context_new ();
- pango_context_set_font_map (result, pango_ft2_font_map_for_display ());
-
- return result;
-}
-
static GType
pango_ft2_font_get_type (void)
{