[deploy] add Font::Preload

This commit is contained in:
Nomango 2020-08-04 03:01:08 +08:00
parent 31692c2a70
commit 0e5f0a5be9
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@
#include <kiwano/render/Font.h> #include <kiwano/render/Font.h>
#include <kiwano/render/Renderer.h> #include <kiwano/render/Renderer.h>
#include <functional> // std::hash #include <functional> // std::hash
#include <cctype> // std::tolower
namespace kiwano namespace kiwano
{ {
@ -158,7 +159,7 @@ void FontCache::Clear()
String FontCache::TransformFamily(String family) const String FontCache::TransformFamily(String family) const
{ {
std::transform(family.begin(), family.end(), family.begin(), std::tolower); std::transform(family.begin(), family.end(), family.begin(), [](unsigned char c) { return std::tolower(c); });
return family; return family;
} }