22#ifndef FONTVARIANTCACHE_H
23#define FONTVARIANTCACHE_H
31#include <unordered_map>
55 std::shared_ptr<wxFont>
GetFont (
double size,
89 mutable std::unordered_map<double, std::shared_ptr<wxFont>> m_fontCaches[32];
Definition: FontVariantCache.h:43
std::shared_ptr< wxFont > GetFont(double size, bool isItalic, bool isBold, bool isUnderlined, bool isSlanted, bool isStrikeThrough)
Returns a font with the requested attributes.
Definition: FontVariantCache.cpp:46
void ClearCache() const
Clear this font variant cache.
Definition: FontVariantCache.cpp:32
const wxString & GetFaceName() const
Get the name of the fonts this font variant cache is responsible for.
Definition: FontVariantCache.h:63