summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2017-07-28 22:05:28 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2017-07-28 22:05:28 +0000
commit3eb67b103fe69a3b42ec16d085a2cb3a58a596b7 (patch)
tree986b33696b0a7f229589b85bd13e6fdb2cbd022a /src/libnrtype
parentfix typo, update CI (diff)
parentShow a control point for the center of a spiral (diff)
downloadinkscape-3eb67b103fe69a3b42ec16d085a2cb3a58a596b7.tar.gz
inkscape-3eb67b103fe69a3b42ec16d085a2cb3a58a596b7.zip
Merge gitlab.com:inkscape/inkscape
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/FontFactory.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libnrtype/FontFactory.cpp b/src/libnrtype/FontFactory.cpp
index fe0da45dc..5c6a96694 100644
--- a/src/libnrtype/FontFactory.cpp
+++ b/src/libnrtype/FontFactory.cpp
@@ -747,7 +747,10 @@ font_instance *font_factory::Face(PangoFontDescription *descr, bool canFail)
}
}
-#if HB_VERSION_ATLEAST(1,2,3)
+// TODO: Ideally, we should use the HB_VERSION_ATLEAST macro here,
+// but this was only released in harfbuzz >= 0.9.30
+// #if HB_VERSION_ATLEAST(1,2,3)
+#if HB_VERSION_MAJOR*10000 + HB_VERSION_MINOR*100 + HB_VERSION_MICRO >= 10203
// Find glyphs in OpenType substitution tables ('gsub').
// Note that pango's functions are just dummies. Must use harfbuzz.