summaryrefslogtreecommitdiff
path: root/pango/pango-font.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-08-12 08:02:04 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-08-12 08:04:13 -0400
commit24e2fcbe69bd8e862e872b0e93b72c3e21d07294 (patch)
treeaf1c3174fcf0a097b5042807e636f762d5930238 /pango/pango-font.h
parent1f74d46424f493e9c8ff699688e1ce89f466fd72 (diff)
downloadpango-24e2fcbe69bd8e862e872b0e93b72c3e21d07294.tar.gz
Make PangoFcFont struct available again
Unfortunately, some applications are poking directly at PangoFcFont struct fields. Put the structs back in the public headers for now, but deprecated.
Diffstat (limited to 'pango/pango-font.h')
-rw-r--r--pango/pango-font.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/pango/pango-font.h b/pango/pango-font.h
index 13730fa5..18d16b37 100644
--- a/pango/pango-font.h
+++ b/pango/pango-font.h
@@ -460,6 +460,31 @@ gboolean pango_font_face_is_synthesized (PangoFontFace *face) G_GN
#define PANGO_FONT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT, PangoFont))
#define PANGO_IS_FONT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT))
+#ifndef PANGO_DISABLE_DEPRECATED
+
+/**
+ * PangoFont:
+ *
+ * The #PangoFont structure is used to represent
+ * a font in a rendering-system-independent matter.
+ * To create an implementation of a #PangoFont,
+ * the rendering-system specific code should allocate
+ * a larger structure that contains a nested
+ * #PangoFont, fill in the <structfield>klass</structfield> member of
+ * the nested #PangoFont with a pointer to
+ * a appropriate #PangoFontClass, then call
+ * pango_font_init() on the structure.
+ *
+ * The #PangoFont structure contains one member
+ * which the implementation fills in.
+ */
+struct _PangoFont
+{
+ GObject parent_instance;
+};
+
+#endif /* PANGO_DISABLE_DEPRECATED */
+
PANGO_AVAILABLE_IN_ALL
GType pango_font_get_type (void) G_GNUC_CONST;