[pango/variable-face: 2/2] Wip: Add variable face api
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/variable-face: 2/2] Wip: Add variable face api
- Date: Mon, 15 Oct 2018 18:00:23 +0000 (UTC)
commit de566f30b1fda7c4c9293be9a67ddcd74ffb7f5b
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 15 10:59:22 2018 -0700
Wip: Add variable face api
pango/pango-font.h | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/pango/pango-font.h b/pango/pango-font.h
index 4af31a95..11e3d323 100644
--- a/pango/pango-font.h
+++ b/pango/pango-font.h
@@ -492,6 +492,12 @@ void pango_font_face_list_sizes (PangoFontFace *face,
PANGO_AVAILABLE_IN_1_18
gboolean pango_font_face_is_synthesized (PangoFontFace *face) G_GNUC_PURE;
+PANGO_AVAILABLE_IN_1_44
+gboolean pango_font_face_is_named_instance (PangoFontFace *face);
+
+PANGO_AVAILABLE_IN_1_44
+gboolean pango_font_face_is_variable (PangoFontFace *face);
+
#ifdef PANGO_ENABLE_BACKEND
#define PANGO_FONT_FACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_FONT_FACE,
PangoFontFaceClass))
@@ -500,6 +506,12 @@ gboolean pango_font_face_is_synthesized (PangoFontFace *face) G_GN
typedef struct _PangoFontFaceClass PangoFontFaceClass;
+enum {
+ PANGO_FONT_FACE_IS_SYNTHESIZED = 1 << 0,
+ PANGO_FONT_FACE_IS_NAMED_INSTANCE = 1 << 1,
+ PANGO_FONT_FACE_IS_VARIABLE = 1 << 2,
+} PangoFontFaceFlags;
+
/**
* PangoFontFace:
*
@@ -523,11 +535,11 @@ struct _PangoFontFaceClass
int **sizes,
int *n_sizes);
gboolean (*is_synthesized) (PangoFontFace *face);
+ PangoFontFaceFlags (*get_flags) (PangoFontFace *face);
/*< private >*/
/* Padding for future expansion */
- void (*_pango_reserved3) (void);
void (*_pango_reserved4) (void);
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]