diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-12-29 13:41:12 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-01-28 09:03:03 -0500 |
commit | 0c5b714c17ef5efa6d8e19592cb30f0b9a608402 (patch) | |
tree | 3b384c32e7c4d45040ee777ff08cf96ffd953cc5 /pango/pango-font.h | |
parent | 98fafa7c500a87f50d77e472153ee08806282414 (diff) | |
download | pango-0c5b714c17ef5efa6d8e19592cb30f0b9a608402.tar.gz |
font: Add pango_font_face_is_variable/monospace
These are really properties of the individual
faces, not the family.
The default implementations of these functions
simply return the corresponding family value.
Add some tests for the new api.
Diffstat (limited to 'pango/pango-font.h')
-rw-r--r-- | pango/pango-font.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pango/pango-font.h b/pango/pango-font.h index 350e4e29..d54dd820 100644 --- a/pango/pango-font.h +++ b/pango/pango-font.h @@ -506,11 +506,8 @@ struct _PangoFontFaceClass gboolean (*is_synthesized) (PangoFontFace *face); PangoFontFamily * (*get_family) (PangoFontFace *face); - /*< private >*/ - - /* Padding for future expansion */ - void (*_pango_reserved3) (void); - void (*_pango_reserved4) (void); + gboolean (*is_monospace) (PangoFontFace *face); + gboolean (*is_variable) (PangoFontFace *face); }; #endif /* PANGO_DISABLE_DEPRECATED */ @@ -532,6 +529,11 @@ gboolean pango_font_face_is_synthesized (PangoFontFace *face) G_GN PANGO_AVAILABLE_IN_1_46 PangoFontFamily * pango_font_face_get_family (PangoFontFace *face); +PANGO_AVAILABLE_IN_1_52 +gboolean pango_font_face_is_monospace (PangoFontFace *face); +PANGO_AVAILABLE_IN_1_52 +gboolean pango_font_face_is_variable (PangoFontFace *face); + /* * PangoFont |