MCPcopy Create free account
hub / github.com/SFML/SFML / getSpacingFactor

Function getSpacingFactor

examples/keyboard/Keyboard.cpp:673–676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671constexpr unsigned int lineSize = textSize + space;
672
673float getSpacingFactor(const sf::Font& font)
674{
675 return static_cast<float>(lineSize) / font.getLineSpacing(textSize);
676}
677
678ShinyText makeShinyText(const sf::Font& font, const sf::String& string, sf::Vector2f position)
679{

Callers 2

makeShinyTextFunction · 0.85
makeTextFunction · 0.85

Calls 1

getLineSpacingMethod · 0.45

Tested by

no test coverage detected