summaryrefslogtreecommitdiff
path: root/pango/fonts.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-08-13 22:59:46 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-10-31 19:52:36 -0400
commit40a805478dfa8988315fd8b7f8515af65c3f90c7 (patch)
tree401a68e86b3a2ac189211a80f18b0f513a740947 /pango/fonts.c
parent044d31030af43722e79c582fc3c4d3e4ace9d9a3 (diff)
downloadpango-40a805478dfa8988315fd8b7f8515af65c3f90c7.tar.gz
Add pango_font_face_get_family
Diffstat (limited to 'pango/fonts.c')
-rw-r--r--pango/fonts.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/pango/fonts.c b/pango/fonts.c
index eaff2378..5c685f77 100644
--- a/pango/fonts.c
+++ b/pango/fonts.c
@@ -2432,6 +2432,25 @@ pango_font_face_list_sizes (PangoFontFace *face,
}
/**
+ * pango_font_face_get_family:
+ * @face: a #PangoFontFace
+ *
+ * Gets the #PangoFontFamily that @face
+ * belongs to.
+ *
+ * Returns: (transfer none): the #PangoFontFamily
+ *
+ * Since: 1.46
+ */
+PangoFontFamily *
+pango_font_face_get_family (PangoFontFace *face)
+{
+ g_return_val_if_fail (PANGO_IS_FONT_FACE (face), NULL);
+
+ return PANGO_FONT_FACE_GET_CLASS (face)->get_family (face);
+}
+
+/**
* pango_font_has_char:
* @font: a #PangoFont
* @wc: a Unicode character