summaryrefslogtreecommitdiff
path: root/pango/pangocairo-fcfontmap.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-06-10 00:48:25 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-06-10 00:48:25 +0000
commit1bc615b0a5863c5680770171f014a1f99c975a9e (patch)
treee7956b3e611ec5867be06bf721b60333edac3798 /pango/pangocairo-fcfontmap.c
parent672cd0f5671ba6f20c76a3b12cfbd4c77c57fb54 (diff)
downloadpango-1bc615b0a5863c5680770171f014a1f99c975a9e.tar.gz
Bug 337593 – move glyph extents code (and cache) from pangocairo-*font.c
2007-06-09 Behdad Esfahbod <behdad@gnome.org> Bug 337593 – move glyph extents code (and cache) from pangocairo-*font.c into pangocairo-font.c * pango/pangocairo-fontmap.c: * pango/pangocairo-fcfontmap.c: Remove per-fontmap renderer. We've not been using it for a while and there is no reason to use it. * pango/pangocairo-font.c * pango/pangocairo-fcfont.c: Most most code (including glyph extents caching) from fcfont.c to font.c. Simplifies individual backends a lot. ATSUI and Win32 cairo backends should adapt. * pango/pangocairo-render.c * pango/pangocairo-private.h: Update to reflect above changes. svn path=/trunk/; revision=2335
Diffstat (limited to 'pango/pangocairo-fcfontmap.c')
-rw-r--r--pango/pangocairo-fcfontmap.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/pango/pangocairo-fcfontmap.c b/pango/pangocairo-fcfontmap.c
index 5b5c9fb5..bcecb059 100644
--- a/pango/pangocairo-fcfontmap.c
+++ b/pango/pangocairo-fcfontmap.c
@@ -52,23 +52,11 @@ pango_cairo_fc_font_map_get_resolution_cairo (PangoCairoFontMap *cfontmap)
return cffontmap->dpi;
}
-static PangoRenderer *
-pango_cairo_fc_font_map_get_renderer (PangoCairoFontMap *cfontmap)
-{
- PangoCairoFcFontMap *cffontmap = (PangoCairoFcFontMap *) (cfontmap);
-
- if (!cffontmap->renderer)
- cffontmap->renderer = g_object_new (PANGO_TYPE_CAIRO_RENDERER, NULL);
-
- return cffontmap->renderer;
-}
-
static void
cairo_font_map_iface_init (PangoCairoFontMapIface *iface)
{
iface->set_resolution = pango_cairo_fc_font_map_set_resolution;
iface->get_resolution = pango_cairo_fc_font_map_get_resolution_cairo;
- iface->get_renderer = pango_cairo_fc_font_map_get_renderer;
}
G_DEFINE_TYPE_WITH_CODE (PangoCairoFcFontMap, pango_cairo_fc_font_map, PANGO_TYPE_FC_FONT_MAP,