[pango/pango2-windows] pangowin32-fontmap.c: Drop size list API



commit fa6278e567ed83c0f8256f76995bdaa00b0c59bc
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Mar 14 16:48:03 2022 +0800

    pangowin32-fontmap.c: Drop size list API
    
    It is not supported for Pango-2.x

 pango/pangowin32-fontmap.c | 18 ------------------
 1 file changed, 18 deletions(-)
---
diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c
index 6c9c556d..38d0f354 100644
--- a/pango/pangowin32-fontmap.c
+++ b/pango/pangowin32-fontmap.c
@@ -76,9 +76,6 @@ static GType      pango_win32_face_get_type          (void);
 
 static GType      pango_win32_family_get_type        (void);
 
-static void       pango_win32_face_list_sizes        (PangoFontFace  *face,
-                                                      int           **sizes,
-                                                      int            *n_sizes);
 
 static void       pango_win32_font_map_finalize      (GObject                      *object);
 static PangoFont *pango_win32_font_map_load_font     (PangoFontMap                 *fontmap,
@@ -1799,7 +1796,6 @@ pango_win32_face_class_init (PangoFontFaceClass *class)
   object_class->finalize = pango_win32_face_finalize;
   class->describe = pango_win32_face_describe;
   class->get_face_name = pango_win32_face_get_face_name;
-  class->list_sizes = pango_win32_face_list_sizes;
   class->is_synthesized = pango_win32_face_is_synthesized;
   class->get_family = pango_win32_face_get_family;
 }
@@ -1809,20 +1805,6 @@ pango_win32_face_init (PangoWin32Face *face)
 {
 }
 
-static void
-pango_win32_face_list_sizes (PangoFontFace  *face,
-                             int           **sizes,
-                             int            *n_sizes)
-{
-  /*
-   * for scalable fonts it's simple, and currently we only have such
-   * see : pango_win32_enum_proc(), TRUETYPE_FONTTYPE
-   */
-  if (sizes)
-    *sizes = NULL;
-  *n_sizes = 0;
-}
-
 /**
  * pango_win32_font_map_get_font_cache:
  * @font_map: a `PangoWin32FontMap`


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