2019-12-23 17:43:10 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "FontHacks.h"
|
|
|
|
|
|
2020-09-12 14:01:51 -04:00
|
|
|
struct IGpFont;
|
2020-10-24 11:41:39 -04:00
|
|
|
class GpIOStream;
|
2020-09-12 14:01:51 -04:00
|
|
|
|
2019-12-23 17:43:10 -05:00
|
|
|
namespace PortabilityLayer
|
|
|
|
|
{
|
|
|
|
|
class RenderedFont;
|
|
|
|
|
|
|
|
|
|
class FontRenderer
|
|
|
|
|
{
|
|
|
|
|
public:
|
2020-09-12 14:01:51 -04:00
|
|
|
virtual RenderedFont *RenderFont(IGpFont *font, int size, bool aa, FontHacks fontHacks) = 0;
|
2020-10-24 11:41:39 -04:00
|
|
|
virtual RenderedFont *LoadCache(GpIOStream *stream) = 0;
|
|
|
|
|
virtual bool SaveCache(const RenderedFont *rfont, GpIOStream *stream) = 0;
|
2019-12-23 17:43:10 -05:00
|
|
|
|
|
|
|
|
static FontRenderer *GetInstance();
|
|
|
|
|
};
|
|
|
|
|
}
|