mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Cache rendered fonts to speed up mobile load
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "FontHacks.h"
|
||||
|
||||
struct IGpFont;
|
||||
class GpIOStream;
|
||||
|
||||
namespace PortabilityLayer
|
||||
{
|
||||
@@ -12,6 +13,8 @@ namespace PortabilityLayer
|
||||
{
|
||||
public:
|
||||
virtual RenderedFont *RenderFont(IGpFont *font, int size, bool aa, FontHacks fontHacks) = 0;
|
||||
virtual RenderedFont *LoadCache(GpIOStream *stream) = 0;
|
||||
virtual bool SaveCache(const RenderedFont *rfont, GpIOStream *stream) = 0;
|
||||
|
||||
static FontRenderer *GetInstance();
|
||||
};
|
||||
|
Reference in New Issue
Block a user