MCPcopy Create free account
hub / github.com/TankOs/SFGUI / GetFontLineSpacing

Method GetFontLineSpacing

src/SFGUI/Engine.cpp:122–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122float Engine::GetFontLineSpacing( const sf::Font& font, unsigned int font_size ) const {
123 return static_cast<float>( font.getLineSpacing( font_size ) );
124}
125
126sf::Vector2f Engine::GetTextStringMetrics( const std::u32string& string, const sf::Font& font, unsigned int font_size ) const {
127 // SFML is incapable of giving us the metrics we need so we have to do it ourselves.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected