From 4ea7c5b63f890aa1c91aee074c85d482fffab1c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 24 Jun 2021 17:50:04 +0200 Subject: [PATCH] features: add feature_graphemes() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Returns true if we’re compiled with grapheme shaping support, false otherwise. --- foot-features.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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 +}