mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Cache rendered fonts to speed up mobile load
This commit is contained in:
@@ -29,15 +29,18 @@ namespace PortabilityLayer
|
||||
IGpFont *GetFontForVariation(int variation) const;
|
||||
FontHacks GetHacksForVariation(int variation) const;
|
||||
|
||||
static FontFamily *Create();
|
||||
int GetCacheID() const;
|
||||
|
||||
static FontFamily *Create(int cacheID);
|
||||
void Destroy();
|
||||
|
||||
private:
|
||||
FontHacks m_hacks[kNumVariations];
|
||||
IGpFont *m_fonts[kNumVariations];
|
||||
uint8_t m_defaultVariation;
|
||||
int m_cacheID;
|
||||
|
||||
FontFamily();
|
||||
explicit FontFamily(int cacheID);
|
||||
~FontFamily();
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user