MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / setFixedFonts

Method setFixedFonts

source/rendering/StarFontTextureGroup.cpp:41–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void FontTextureGroup::setFixedFonts(String const& defaultFontName, String const& fallbackFontName, String const& emojiFontName) {
42 if (auto defaultFont = m_fonts.ptr(defaultFontName))
43 m_defaultFont = m_activeFont = *defaultFont;
44 if (auto fallbackFont = m_fonts.ptr(fallbackFontName))
45 m_fallbackFont = *fallbackFont;
46 if (auto emojiFont = m_fonts.ptr(emojiFontName))
47 m_emojiFont = *emojiFont;
48}
49
50const FontTextureGroup::GlyphTexture& FontTextureGroup::glyphTexture(String::Char c, unsigned size, Directives const* processingDirectives)
51{

Callers 1

reloadFontsMethod · 0.80

Calls 1

ptrMethod · 0.45

Tested by

no test coverage detected