[pango/wip/kill-shape-engine: 12/15] Deprecate pango_font_find_shaper



commit 48c5b52c944be0083a6c35caea86d186175b1640
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 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);


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