features: add feature_graphemes()

Returns true if we’re compiled with grapheme shaping support, false
otherwise.
This commit is contained in:
Daniel Eklöf 2021-06-24 17:50:04 +02:00
parent cf101ea300
commit 4ea7c5b63f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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
}