| 336 | } |
| 337 | |
| 338 | void TextFieldEx::setTextFontSize(float size) |
| 339 | { |
| 340 | if (_systemFontUsed) |
| 341 | { |
| 342 | _renderLabel->setSystemFontSize(size); |
| 343 | } |
| 344 | else |
| 345 | { |
| 346 | TTFConfig config = _renderLabel->getTTFConfig(); |
| 347 | config.fontSize = size; |
| 348 | _renderLabel->setTTFConfig(config); |
| 349 | } |
| 350 | |
| 351 | _fontSize = size; |
| 352 | |
| 353 | using namespace std::string_view_literals; |
| 354 | _asteriskWidth = internalCalcStringWidth("*"sv, _fontName, _fontSize); |
| 355 | } |
| 356 | |
| 357 | float TextFieldEx::getTextFontSize() const |
| 358 | { |
nothing calls this directly
no test coverage detected