summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-09 15:08:08 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-07-18 16:19:58 -0700
commit48c5b52c944be0083a6c35caea86d186175b1640 (patch)
treec421e06fb311805aac7bd28f997ccb6de9db0aed /pango
parent8871ee9eef7ae1df0a3a3626e31f7ed1fc21a70d (diff)
downloadpango-48c5b52c944be0083a6c35caea86d186175b1640.tar.gz
Deprecate pango_font_find_shaper
Deprecate pango_font_find_shaper, make it return NULL, and remove the find_shaper vfunc.
Diffstat (limited to 'pango')
-rw-r--r--pango/fonts.c10
-rw-r--r--pango/pango-font-private.h3
-rw-r--r--pango/pango-font.h2
3 files changed, 3 insertions, 12 deletions
diff --git a/pango/fonts.c b/pango/fonts.c
index 4ba9d3fe..0d68cefd 100644
--- a/pango/fonts.c
+++ b/pango/fonts.c
@@ -1720,20 +1720,14 @@ pango_font_get_coverage (PangoFont *font,
* language tag and character point.
*
* Return value: (transfer none): the best matching shaper.
+ * Deprecated: Shape engines are no longer used
**/
PangoEngineShape *
pango_font_find_shaper (PangoFont *font,
PangoLanguage *language,
guint32 ch)
{
- PangoEngineShape* shaper;
-
- if (G_UNLIKELY (!font))
- return NULL;
-
- shaper = PANGO_FONT_GET_CLASS (font)->find_shaper (font, language, ch);
-
- return shaper;
+ return NULL;
}
/**
diff --git a/pango/pango-font-private.h b/pango/pango-font-private.h
index 029bef99..8817bc02 100644
--- a/pango/pango-font-private.h
+++ b/pango/pango-font-private.h
@@ -164,9 +164,6 @@ struct _PangoFontClass
PangoFontDescription *(*describe) (PangoFont *font);
PangoCoverage * (*get_coverage) (PangoFont *font,
PangoLanguage *language);
- PangoEngineShape * (*find_shaper) (PangoFont *font,
- PangoLanguage *language,
- guint32 ch);
void (*get_glyph_extents) (PangoFont *font,
PangoGlyph glyph,
PangoRectangle *ink_rect,
diff --git a/pango/pango-font.h b/pango/pango-font.h
index cec7efc6..ec4a7dea 100644
--- a/pango/pango-font.h
+++ b/pango/pango-font.h
@@ -470,7 +470,7 @@ PangoFontDescription *pango_font_describe_with_absolute_size (PangoFont *
PANGO_AVAILABLE_IN_ALL
PangoCoverage * pango_font_get_coverage (PangoFont *font,
PangoLanguage *language);
-PANGO_AVAILABLE_IN_ALL
+PANGO_DEPRECATED_IN_1_44
PangoEngineShape * pango_font_find_shaper (PangoFont *font,
PangoLanguage *language,
guint32 ch);