summaryrefslogtreecommitdiff
path: root/pango/pangocoretext.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-18 23:36:43 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-07-18 23:36:43 +0000
commit1b63d2a36fe6fef9276053945fa9edd3ccc7a716 (patch)
tree9ad5d9e3e67b85197a4c41c9934ec84f84e6bd28 /pango/pangocoretext.c
parent5c74e9e573d9af5995c1e1aa44538561788dcdc3 (diff)
parent4212fa6a2b8581d9e1c2074c1130d94895d68a61 (diff)
downloadpango-1b63d2a36fe6fef9276053945fa9edd3ccc7a716.tar.gz
Merge branch 'wip/kill-shape-engine' into 'master'
Kill shape engines See merge request GNOME/pango!75
Diffstat (limited to 'pango/pangocoretext.c')
-rw-r--r--pango/pangocoretext.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/pango/pangocoretext.c b/pango/pangocoretext.c
index 5faac64c..4975ade2 100644
--- a/pango/pangocoretext.c
+++ b/pango/pangocoretext.c
@@ -161,46 +161,6 @@ pango_core_text_font_get_coverage (PangoFont *font,
return pango_coverage_ref (priv->coverage);
}
-/* Wrap shaper in PangoEngineShape to pass it through old API,
- * from times when there were modules and engines. */
-typedef PangoEngineShape PangoCoreTextShapeEngine;
-typedef PangoEngineShapeClass PangoCoreTextShapeEngineClass;
-static GType pango_core_text_shape_engine_get_type (void) G_GNUC_CONST;
-G_DEFINE_TYPE (PangoCoreTextShapeEngine, pango_core_text_shape_engine, PANGO_TYPE_ENGINE_SHAPE);
-static void
-_pango_core_text_shape_engine_shape (PangoEngineShape *engine G_GNUC_UNUSED,
- PangoFont *font,
- const char *item_text,
- unsigned int item_length,
- const PangoAnalysis *analysis,
- PangoGlyphString *glyphs,
- const char *paragraph_text,
- unsigned int paragraph_length)
-{
- _pango_core_text_shape (font, item_text, item_length, analysis, glyphs,
- paragraph_text, paragraph_length);
-}
-static void
-pango_core_text_shape_engine_class_init (PangoEngineShapeClass *class)
-{
- class->script_shape = _pango_core_text_shape_engine_shape;
-}
-static void
-pango_core_text_shape_engine_init (PangoEngineShape *object)
-{
-}
-
-static PangoEngineShape *
-pango_core_text_font_find_shaper (PangoFont *font,
- PangoLanguage *language G_GNUC_UNUSED,
- guint32 ch)
-{
- static PangoEngineShape *shaper;
- if (g_once_init_enter (&shaper))
- g_once_init_leave (&shaper, g_object_new (pango_core_text_shape_engine_get_type(), NULL));
- return shaper;
-}
-
static PangoFontMap *
pango_core_text_font_get_font_map (PangoFont *font)
{
@@ -246,7 +206,6 @@ pango_core_text_font_class_init (PangoCoreTextFontClass *class)
font_class->describe = pango_core_text_font_describe;
/* font_class->describe_absolute is left virtual for PangoCairoCoreTextFont. */
font_class->get_coverage = pango_core_text_font_get_coverage;
- font_class->find_shaper = pango_core_text_font_find_shaper;
font_class->get_font_map = pango_core_text_font_get_font_map;
font_class->create_hb_font = pango_core_text_font_create_hb_font;
}