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

Function makeShinyText

examples/keyboard/Keyboard.cpp:678–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676}
677
678ShinyText makeShinyText(const sf::Font& font, const sf::String& string, sf::Vector2f position)
679{
680 ShinyText text(font, string, textSize);
681 text.setLineSpacing(getSpacingFactor(font));
682 text.setOutlineThickness(2.f);
683 text.setPosition(position);
684
685 return text;
686}
687
688sf::Text makeText(const sf::Font& font, const sf::String& string, sf::Vector2f position)
689{

Callers 1

mainFunction · 0.85

Calls 4

getSpacingFactorFunction · 0.85
setLineSpacingMethod · 0.80
setOutlineThicknessMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected