[pango/pango2: 48/201] Drop pango_context_list_families
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 48/201] Drop pango_context_list_families
- Date: Sat, 11 Jun 2022 02:22:27 +0000 (UTC)
commit 90bf3117224f692bb184061736d2419eb95ece16
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 12 13:54:08 2022 -0500
Drop pango_context_list_families
Just use the font map directly.
pango/pango-context.c | 33 ---------------------------------
pango/pango-context.h | 4 ----
2 files changed, 37 deletions(-)
---
diff --git a/pango/pango-context.c b/pango/pango-context.c
index 52cce104..dbe98a34 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -258,39 +258,6 @@ pango_context_get_font_map (PangoContext *context)
return context->font_map;
}
-/**
- * pango_context_list_families:
- * @context: a `PangoContext`
- * @families: (out) (array length=n_families) (transfer container): location
- * to store a pointer to an array of `PangoFontFamily`. This array should
- * be freed with g_free().
- * @n_families: (out): location to store the number of elements in @descs
- *
- * List all families for a context.
- */
-void
-pango_context_list_families (PangoContext *context,
- PangoFontFamily ***families,
- int *n_families)
-{
- g_return_if_fail (context != NULL);
- g_return_if_fail (families == NULL || n_families != NULL);
-
- if (n_families == NULL)
- return;
-
- if (context->font_map == NULL)
- {
- *n_families = 0;
- if (families)
- *families = NULL;
-
- return;
- }
- else
- pango_font_map_list_families (context->font_map, families, n_families);
-}
-
/**
* pango_context_load_font:
* @context: a `PangoContext`
diff --git a/pango/pango-context.h b/pango/pango-context.h
index 3ad63f80..484f35b6 100644
--- a/pango/pango-context.h
+++ b/pango/pango-context.h
@@ -55,10 +55,6 @@ PangoFontMap * pango_context_get_font_map (PangoContext
PANGO_AVAILABLE_IN_1_32
guint pango_context_get_serial (PangoContext *context);
PANGO_AVAILABLE_IN_ALL
-void pango_context_list_families (PangoContext *context,
- PangoFontFamily ***families,
- int *n_families);
-PANGO_AVAILABLE_IN_ALL
PangoFont * pango_context_load_font (PangoContext *context,
const PangoFontDescription *desc);
PANGO_AVAILABLE_IN_ALL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]