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