summaryrefslogtreecommitdiff
path: root/pango/pangofc-font.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-08-12 12:24:28 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-08-12 12:24:28 +0000
commit24f7a9929ffc8170d9aa5bd429e6983c303eee2e (patch)
treef85352ca7c1870a862ce5e009cc6344a255b9688 /pango/pangofc-font.h
parentf67627fd5e1c860af630a065234c7740c643e130 (diff)
parent24e2fcbe69bd8e862e872b0e93b72c3e21d07294 (diff)
downloadpango-24f7a9929ffc8170d9aa5bd429e6983c303eee2e.tar.gz
Merge branch 'fc-font-struct' into 'master'
Make PangoFcFont struct available again See merge request GNOME/pango!133
Diffstat (limited to 'pango/pangofc-font.h')
-rw-r--r--pango/pangofc-font.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/pango/pangofc-font.h b/pango/pangofc-font.h
index 0cd4f174..641f5947 100644
--- a/pango/pangofc-font.h
+++ b/pango/pangofc-font.h
@@ -49,6 +49,36 @@ G_BEGIN_DECLS
typedef struct _PangoFcFont PangoFcFont;
typedef struct _PangoFcFontClass PangoFcFontClass;
+#ifndef PANGO_DISABLE_DEPRECATED
+
+/**
+ * PangoFcFont:
+ *
+ * #PangoFcFont is a base class for font implementations
+ * using the Fontconfig and FreeType libraries and is used in
+ * conjunction with #PangoFcFontMap. When deriving from this
+ * class, you need to implement all of its virtual functions
+ * other than shutdown() along with the get_glyph_extents()
+ * virtual function from #PangoFont.
+ **/
+struct _PangoFcFont
+{
+ PangoFont parent_instance;
+
+ FcPattern *font_pattern; /* fully resolved pattern */
+ PangoFontMap *fontmap; /* associated map */
+ gpointer priv; /* used internally */
+ PangoMatrix matrix; /* used internally */
+ PangoFontDescription *description;
+
+ GSList *metrics_by_lang;
+
+ guint is_hinted : 1;
+ guint is_transformed : 1;
+};
+
+#endif /* PANGO_DISABLE_DEPRECATED */
+
PANGO_AVAILABLE_IN_ALL
GType pango_fc_font_get_type (void) G_GNUC_CONST;