MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / createText

Method createText

src/Core/Graphics/Text.cpp:269–283  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

267
268 ////////////////////////////////////////////////////////////////////////////////
269 sf::Text RichText::createText(const sf::String& string, const Color& color,
270 const Color& outline, unsigned int thickness, sf::Text::Style style) const
271 {
272 sf::Text text;
273 text.setString(string);
274 text.setFillColor(color);
275 text.setOutlineColor(outline);
276 text.setOutlineThickness(thickness);
277 text.setStyle(style);
278 text.setCharacterSize(m_characterSize);
279 if (m_font)
280 text.setFont(m_font);
281
282 return text;
283 }
284
285 ////////////////////////////////////////////////////////////////////////////////
286 void RichText::updateGeometry() const

Callers

nothing calls this directly

Calls 5

setFillColorMethod · 0.80
setOutlineColorMethod · 0.80
setOutlineThicknessMethod · 0.80
setCharacterSizeMethod · 0.45
setFontMethod · 0.45

Tested by

no test coverage detected