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

Method getLineSpacing

src/SFML/Graphics/Font.cpp:362–372  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

360
361////////////////////////////////////////////////////////////
362float Font::getLineSpacing(unsigned int characterSize) const
363{
364 FT_Face face = m_fontHandles ? m_fontHandles->face : nullptr;
365
366 if (face && setCurrentSize(characterSize))
367 {
368 return static_cast<float>(face->size->metrics.height) / float{1 << 6};
369 }
370
371 return 0.f;
372}
373
374
375////////////////////////////////////////////////////////////

Callers 4

Text.test.cppFile · 0.45
Font.test.cppFile · 0.45
getSpacingFactorFunction · 0.45
JoystickDisplayMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected