[pango/kill-ft-face: 10/14] Deprecate FT_Face getters



commit e736228bd4b4bede55f83d45869a8390242e3200
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jul 9 23:20:19 2019 -0400

    Deprecate FT_Face getters
    
    We are moving away from a freetype dependency,
    so these will be going away at some point.

 pango/pangofc-font.c | 2 ++
 pango/pangofc-font.h | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c
index 13686c5f..e718a6bc 100644
--- a/pango/pangofc-font.c
+++ b/pango/pangofc-font.c
@@ -595,6 +595,7 @@ pango_fc_font_real_get_glyph (PangoFcFont *font,
  * Return value: the FreeType <type>FT_Face</type> associated with @font.
  *
  * Since: 1.4
+ * Deprecated: 1.44: Use pango_font_get_hb_font() instead
  **/
 FT_Face
 pango_fc_font_lock_face (PangoFcFont *font)
@@ -612,6 +613,7 @@ pango_fc_font_lock_face (PangoFcFont *font)
  * pango_fc_font_lock_face().
  *
  * Since: 1.4
+ * Deprecated: 1.44: Use pango_font_get_hb_font() instead
  **/
 void
 pango_fc_font_unlock_face (PangoFcFont *font)
diff --git a/pango/pangofc-font.h b/pango/pangofc-font.h
index 38d86fa9..5d04088e 100644
--- a/pango/pangofc-font.h
+++ b/pango/pangofc-font.h
@@ -51,9 +51,9 @@ typedef struct _PangoFcFontClass PangoFcFontClass;
 PANGO_AVAILABLE_IN_ALL
 GType      pango_fc_font_get_type (void) G_GNUC_CONST;
 
-PANGO_AVAILABLE_IN_1_4
+PANGO_DEPRECATED_IN_1_44_FOR(pango_font_get_hb_font)
 FT_Face    pango_fc_font_lock_face         (PangoFcFont      *font);
-PANGO_AVAILABLE_IN_1_4
+PANGO_DEPRECATED_IN_1_44_FOR(pango_font_get_hb_font)
 void       pango_fc_font_unlock_face       (PangoFcFont      *font);
 
 G_END_DECLS


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