[pango/kill-shape-engines-2: 6/7] Deprecate pango_font_find_shaper



commit 6495b1b1baae6a75133a2fb9f67f5dc6ec37ecf9
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jul 9 15:08:08 2019 -0400

    Deprecate pango_font_find_shaper
    
    Deprecate pango_font_find_shaper, make it return
    NULL, and remove the find_shaper vfunc.

 pango/fonts.c              | 10 ++--------
 pango/pango-font-private.h |  3 ---
 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]