[pango/simple-fontmap: 7/37] Add a default implementation for list_faces




commit c8e8f7f7c8a64e08b8304148c913bdbb51bf63cc
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jan 9 18:35:56 2022 -0500

    Add a default implementation for list_faces

 pango/fonts.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
---
diff --git a/pango/fonts.c b/pango/fonts.c
index 99262942..dffdca0c 100644
--- a/pango/fonts.c
+++ b/pango/fonts.c
@@ -2373,12 +2373,25 @@ pango_font_family_default_is_variable (PangoFontFamily *family)
   return FALSE;
 }
 
+static void
+pango_font_family_default_list_faces (PangoFontFamily   *family,
+                                      PangoFontFace   ***faces,
+                                      int               *n_faces)
+{
+  if (faces)
+    *faces = NULL;
+
+  if (n_faces)
+    *n_faces = 0;
+}
+
 static void
 pango_font_family_class_init (PangoFontFamilyClass *class G_GNUC_UNUSED)
 {
   class->is_monospace = pango_font_family_default_is_monospace;
   class->is_variable = pango_font_family_default_is_variable;
   class->get_face = pango_font_family_real_get_face;
+  class->list_faces = pango_font_family_default_list_faces;
 }
 
 static void


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