diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-08-13 22:36:01 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-10-31 19:52:36 -0400 |
commit | 044d31030af43722e79c582fc3c4d3e4ace9d9a3 (patch) | |
tree | 77fb9731cdad54cefb60ff8409a712067ea6176e /pango/pango-font.h | |
parent | e1b05c6e7327e83eccffd64b4bf515220a5183ca (diff) | |
download | pango-044d31030af43722e79c582fc3c4d3e4ace9d9a3.tar.gz |
Add pango_font_family_get_face
This lets us get a face by name.
Diffstat (limited to 'pango/pango-font.h')
-rw-r--r-- | pango/pango-font.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pango/pango-font.h b/pango/pango-font.h index 70c24d20..d84847a5 100644 --- a/pango/pango-font.h +++ b/pango/pango-font.h @@ -428,11 +428,14 @@ struct _PangoFontFamilyClass gboolean (*is_monospace) (PangoFontFamily *family); gboolean (*is_variable) (PangoFontFamily *family); + PangoFontFace * (*get_face) (PangoFontFamily *family, + const char *name); + + /*< private >*/ /* Padding for future expansion */ void (*_pango_reserved2) (void); - void (*_pango_reserved3) (void); }; #endif /* PANGO_DISABLE_DEPRECATED */ @@ -451,6 +454,10 @@ gboolean pango_font_family_is_monospace (PangoFontFamily *family) G_G PANGO_AVAILABLE_IN_1_44 gboolean pango_font_family_is_variable (PangoFontFamily *family) G_GNUC_PURE; +PANGO_AVAILABLE_IN_1_46 +PangoFontFace *pango_font_family_get_face (PangoFontFamily *family, + const char *name); + /* * PangoFontFace |