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
@@ -111,6 +111,10 @@ String TextServerFallback::_get_name() const {
#endif
}
String TextServerFallback::_get_short_name() const {
return "fallback";
}
int64_t TextServerFallback::_get_features() const {
int64_t interface_features = FEATURE_SIMPLE_LAYOUT | FEATURE_FONT_BITMAP;
#ifdef MODULE_FREETYPE_ENABLED