MCPcopy Create free account
hub / github.com/ddnet/ddnet / SetDefaultFaceByName

Method SetDefaultFaceByName

src/engine/client/text.cpp:622–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

620 }
621
622 bool SetDefaultFaceByName(const char *pFamilyName)
623 {
624 m_DefaultFace = GetFaceByName(pFamilyName);
625 if(!m_DefaultFace)
626 {
627 if(!m_vFtFaces.empty())
628 {
629 m_DefaultFace = m_vFtFaces.front();
630 }
631 log_error("textrender", "The default font face '%s' could not be found", pFamilyName);
632 return false;
633 }
634 return true;
635 }
636
637 bool SetIconFaceByName(const char *pFamilyName)
638 {

Callers 1

LoadFontsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected