[gtk/backport-font-feature-pango-hb] Meson: Enable font features demo on later Pango versions
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/backport-font-feature-pango-hb] Meson: Enable font features demo on later Pango versions
- Date: Fri, 26 Nov 2021 03:32:07 +0000 (UTC)
commit 4f7b830432e5887caf7a93c6020701236a2af994
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Nov 25 18:56:24 2021 +0800
Meson: Enable font features demo on later Pango versions
...even if PangoFT2 is not present, provided that Pango 1.44.0+ and
HarfBuzz 2.2.0+ are installed. The demo now has added support for later
Pango versions that use HarfBuzz for shaping on all supported platforms.
demos/gtk-demo/meson.build | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/demos/gtk-demo/meson.build b/demos/gtk-demo/meson.build
index 82e08973a5..ac54be6c72 100644
--- a/demos/gtk-demo/meson.build
+++ b/demos/gtk-demo/meson.build
@@ -76,7 +76,17 @@ demos = files([
gtkdemo_deps = [libgtk_dep]
-if harfbuzz_dep.found() and pangoft_dep.found()
+if pango_dep.version().version_compare('>=1.44.0')
+ if harfbuzz_dep.found()
+ if cc.has_header_symbol(
+ 'hb-ot.h',
+ 'hb_ot_var_get_axis_count',
+ dependencies: harfbuzz_dep
+ )
+ demos += files('font_features.c')
+ endif
+ endif
+elif harfbuzz_dep.found() and pangoft_dep.found()
demos += files('font_features.c')
gtkdemo_deps += [harfbuzz_dep, pangoft_dep]
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]