mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-09 08:21:01 -04:00
feature: add a feature flag (for --version) for fractional scaling
This commit is contained in:
parent
27a92b1158
commit
9db92bd942
3 changed files with 15 additions and 2 deletions
4
client.c
4
client.c
|
|
@ -66,11 +66,13 @@ static const char *
|
||||||
version_and_features(void)
|
version_and_features(void)
|
||||||
{
|
{
|
||||||
static char buf[256];
|
static char buf[256];
|
||||||
snprintf(buf, sizeof(buf), "version: %s %cpgo %cime %cgraphemes %cassertions",
|
snprintf(buf, sizeof(buf),
|
||||||
|
"version: %s %cpgo %cime %cgraphemes %cfractional-scaling %cassertions",
|
||||||
FOOT_VERSION,
|
FOOT_VERSION,
|
||||||
feature_pgo() ? '+' : '-',
|
feature_pgo() ? '+' : '-',
|
||||||
feature_ime() ? '+' : '-',
|
feature_ime() ? '+' : '-',
|
||||||
feature_graphemes() ? '+' : '-',
|
feature_graphemes() ? '+' : '-',
|
||||||
|
feature_fractional_scaling() ? '+' : ':',
|
||||||
feature_assertions() ? '+' : '-');
|
feature_assertions() ? '+' : '-');
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,3 +37,12 @@ static inline bool feature_graphemes(void)
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline bool feature_fractional_scaling(void)
|
||||||
|
{
|
||||||
|
#if defined(HAVE_FRACTIONAL_SCALE)
|
||||||
|
return true;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
|
||||||
4
main.c
4
main.c
|
|
@ -52,11 +52,13 @@ static const char *
|
||||||
version_and_features(void)
|
version_and_features(void)
|
||||||
{
|
{
|
||||||
static char buf[256];
|
static char buf[256];
|
||||||
snprintf(buf, sizeof(buf), "version: %s %cpgo %cime %cgraphemes %cassertions",
|
snprintf(buf, sizeof(buf),
|
||||||
|
"version: %s %cpgo %cime %cgraphemes %cfractional-scaling %cassertions",
|
||||||
FOOT_VERSION,
|
FOOT_VERSION,
|
||||||
feature_pgo() ? '+' : '-',
|
feature_pgo() ? '+' : '-',
|
||||||
feature_ime() ? '+' : '-',
|
feature_ime() ? '+' : '-',
|
||||||
feature_graphemes() ? '+' : '-',
|
feature_graphemes() ? '+' : '-',
|
||||||
|
feature_fractional_scaling() ? '+' : '-',
|
||||||
feature_assertions() ? '+' : '-');
|
feature_assertions() ? '+' : '-');
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue