aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-06-24 15:50:04 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-06-24 15:50:04 +0000
commit4ea7c5b63f890aa1c91aee074c85d482fffab1c2 (patch)
treed640436f80f7f5ac23d499254eb2d70f8020c744
parentchangelog: describe what (does not) happens when grapheme-shaping=no (diff)
features: add feature_graphemes()
Returns true if we’re compiled with grapheme shaping support, false otherwise.
-rw-r--r--foot-features.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/foot-features.h b/foot-features.h
index ae00c564..cdc8056f 100644
--- a/foot-features.h
+++ b/foot-features.h
@@ -19,3 +19,12 @@ static inline bool feature_pgo(void)
return false;
#endif
}
+
+static inline bool feature_graphemes(void)
+{
+#if defined(FOOT_GRAPHEME_CLUSTERING) && FOOT_GRAPHEME_CLUSTERING
+ return true;
+#else
+ return false;
+#endif
+}