summaryrefslogtreecommitdiff
path: root/pango/pango-fontmap.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-08-13 22:18:32 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-10-31 19:52:03 -0400
commite1b05c6e7327e83eccffd64b4bf515220a5183ca (patch)
tree15f12ee1934d2f7126f2a207ac8163c25239ed77 /pango/pango-fontmap.h
parent5ed6d2589f8c553bfdfff080b8bea5c90bfefad6 (diff)
downloadpango-e1b05c6e7327e83eccffd64b4bf515220a5183ca.tar.gz
Add pango_font_map_get_family
This lets us get a PangoFontFamily by name.
Diffstat (limited to 'pango/pango-fontmap.h')
-rw-r--r--pango/pango-fontmap.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/pango/pango-fontmap.h b/pango/pango-fontmap.h
index b6206f1d..42ffc2ff 100644
--- a/pango/pango-fontmap.h
+++ b/pango/pango-fontmap.h
@@ -114,11 +114,13 @@ struct _PangoFontMapClass
guint (*get_serial) (PangoFontMap *fontmap);
void (*changed) (PangoFontMap *fontmap);
+ PangoFontFamily * (*get_family) (PangoFontMap *fontmap,
+ const char *name);
+
/*< private >*/
/* Padding for future expansion */
void (*_pango_reserved1) (void);
- void (*_pango_reserved2) (void);
};
PANGO_AVAILABLE_IN_ALL
@@ -143,6 +145,9 @@ guint pango_font_map_get_serial (PangoFontMap *fontma
PANGO_AVAILABLE_IN_1_34
void pango_font_map_changed (PangoFontMap *fontmap);
+PANGO_AVAILABLE_IN_1_46
+PangoFontFamily *pango_font_map_get_family (PangoFontMap *fontmap,
+ const char *name);
G_END_DECLS