diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-07-09 15:08:08 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-07-12 09:18:49 -0400 |
commit | 6495b1b1baae6a75133a2fb9f67f5dc6ec37ecf9 (patch) | |
tree | 312bb4bc8b6c79aa6e46cadde3f17e0ccb126d0e | |
parent | 0fd6450df05ea36c4de157312cc902625875149f (diff) | |
download | pango-6495b1b1baae6a75133a2fb9f67f5dc6ec37ecf9.tar.gz |
Deprecate pango_font_find_shaper
Deprecate pango_font_find_shaper, make it return
NULL, and remove the find_shaper vfunc.
-rw-r--r-- | pango/fonts.c | 10 | ||||
-rw-r--r-- | pango/pango-font-private.h | 3 | ||||
-rw-r--r-- | pango/pango-font.h | 2 |
3 files changed, 3 insertions, 12 deletions
diff --git a/pango/fonts.c b/pango/fonts.c index 4e9fa6b3..37417419 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 e7f5ef11..8688f16c 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); |