1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix for Typeface::clearTypefaceCache()

This commit is contained in:
jules 2012-07-02 15:06:49 +01:00
parent d77418efed
commit 625395fc98

View file

@ -64,6 +64,7 @@ public:
void clear()
{
setSize (faces.size());
defaultFace = nullptr;
}
Typeface::Ptr findTypefaceFor (const Font& font)
@ -127,10 +128,7 @@ public:
private:
struct CachedFace
{
CachedFace() noexcept
: lastUsageCount (0)
{
}
CachedFace() noexcept : lastUsageCount (0) {}
// Although it seems a bit wacky to store the name here, it's because it may be a
// placeholder rather than a real one, e.g. "<Sans-Serif>" vs the actual typeface name.