comparison Core/Images/FontRegistry.cpp @ 2942:e9613a09cf9e

added FontRegistry::FindFont
author am@osimis.io
date Thu, 29 Nov 2018 15:26:31 +0100
parents 878b59270859
children 4e43e67f8ecf
comparison
equal deleted inserted replaced
2939:577786f59252 2942:e9613a09cf9e
86 else 86 else
87 { 87 {
88 return *fonts_[i]; 88 return *fonts_[i];
89 } 89 }
90 } 90 }
91
92 const Font* FontRegistry::FindFont(const std::string& fontName) const
93 {
94 for (Fonts::const_iterator it = fonts_.begin(); it != fonts_.end(); it++)
95 {
96 if ((*it)->GetName() == fontName)
97 {
98 return *it;
99 }
100 }
101
102 return NULL;
103 }
104
91 } 105 }