| 325 | } |
| 326 | |
| 327 | RectF GuiContext::renderInterfaceText(String const& s, TextPositioning const& position) { |
| 328 | auto res = renderText(s, { |
| 329 | position.pos * interfaceScale(), |
| 330 | position.hAnchor, |
| 331 | position.vAnchor, |
| 332 | position.wrapWidth.apply(bind(std::multiplies<int>(), _1, interfaceScale())), |
| 333 | position.charLimit |
| 334 | }); |
| 335 | return RectF(res).scaled(1.0f / interfaceScale()); |
| 336 | } |
| 337 | |
| 338 | RectF GuiContext::determineTextSize(String const& s, TextPositioning const& positioning) { |
| 339 | return textPainter()->determineTextSize(s, positioning); |
no test coverage detected