Add TextServer.get_short_name() and use it in --text-driver

This makes it easier to select TextServers on the command line.
Instead of having to enter the full name in quotes, you can now
just use `advanced`, `fallback` or `dummy` (lowercase).
This commit is contained in:
Hugo Locurcio
2025-11-28 01:04:21 +01:00
parent 7ed0b61676
commit e2c17a8a0b
12 changed files with 43 additions and 4 deletions
@@ -387,6 +387,10 @@ String TextServerAdvanced::_get_name() const {
#endif
}
String TextServerAdvanced::_get_short_name() const {
return "advanced";
}
int64_t TextServerAdvanced::_get_features() const {
int64_t interface_features = FEATURE_SIMPLE_LAYOUT | FEATURE_BIDI_LAYOUT | FEATURE_VERTICAL_LAYOUT | FEATURE_SHAPING | FEATURE_KASHIDA_JUSTIFICATION | FEATURE_BREAK_ITERATORS | FEATURE_FONT_BITMAP | FEATURE_FONT_VARIABLE | FEATURE_CONTEXT_SENSITIVE_CASE_CONVERSION | FEATURE_USE_SUPPORT_DATA;
#ifdef MODULE_FREETYPE_ENABLED