Preload font resources

This commit is contained in:
Dan Paulat 2021-10-23 09:03:54 -05:00
parent 6ff4718ef4
commit 28ea12cbfe
7 changed files with 53 additions and 3 deletions

View file

@ -250,6 +250,7 @@ std::shared_ptr<Font> Font::Create(const std::string& resource)
auto it = fontMap_.find(resource);
if (it != fontMap_.end())
{
BOOST_LOG_TRIVIAL(debug) << logPrefix_ << "Font already created";
return it->second;
}