///////////////////////////////////////////////////////////////////////////
| 86 | |
| 87 | //////////////////////////////////////////////////////////////////////////////// |
| 88 | void RichText::Line::updateTextAndGeometry(sf::Text& text) const |
| 89 | { |
| 90 | // Set text offset |
| 91 | text.setPosition(m_bounds.width, 0.f); |
| 92 | |
| 93 | // Update bounds |
| 94 | int lineSpacing = text.getFont()->getLineSpacing(text.getCharacterSize()); |
| 95 | m_bounds.height = std::max(m_bounds.height, static_cast<float>(lineSpacing)); |
| 96 | m_bounds.width += text.getGlobalBounds().width; |
| 97 | } |
| 98 | |
| 99 | |
| 100 | //////////////////////////////////////////////////////////////////////////////// |
nothing calls this directly
no test coverage detected