summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2019-07-07 09:31:07 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2019-07-07 09:31:07 +0100
commit7c7239eb3420c4a112805b960d3733b3bf66717c (patch)
treee1b7c04144b911373bed5f4afb84c23d0e804822
parent73abb699bb9d1984b337bef4462e3d378d8ce9d7 (diff)
downloadcogl-7c7239eb3420c4a112805b960d3733b3bf66717c.tar.gz
Add fallback for semi-private symbols in Pango
Pango dropped the PANGO_ENABLE_BACKEND and PANGO_ENABLE_ENGINE symbols, so we need to add our own defines to avoid breaking the build.
-rw-r--r--cogl-pango/cogl-pango-render.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cogl-pango/cogl-pango-render.c b/cogl-pango/cogl-pango-render.c
index a8855eac..fbf9949a 100644
--- a/cogl-pango/cogl-pango-render.c
+++ b/cogl-pango/cogl-pango-render.c
@@ -41,6 +41,13 @@
#define PANGO_ENABLE_BACKEND 1
#endif
+#ifndef PANGO_UNKNOWN_GLYPH_WIDTH
+#define PANGO_UNKNOWN_GLYPH_WIDTH 10
+#endif
+#ifndef PANGO_UNKNOWN_GLYPH_HEIGHT
+#define PANGO_UNKNOWN_GLYPH_HEIGHT 14
+#endif
+
#include <pango/pango-fontmap.h>
#include <pango/pangocairo.h>
#include <pango/pango-renderer.h>