| 340 | } |
| 341 | |
| 342 | RectF GuiContext::determineInterfaceTextSize(String const& s, TextPositioning const& positioning) { |
| 343 | auto res = determineTextSize(s, { |
| 344 | positioning.pos * interfaceScale(), |
| 345 | positioning.hAnchor, |
| 346 | positioning.vAnchor, |
| 347 | positioning.wrapWidth.apply(bind(std::multiplies<int>(), _1, interfaceScale())) |
| 348 | }); |
| 349 | return RectF(res).scaled(1.0f / interfaceScale()); |
| 350 | } |
| 351 | |
| 352 | void GuiContext::setFontSize(unsigned size) { |
| 353 | setFontSize(size, interfaceScale()); |
no test coverage detected