| 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 | { |