Files
Aerofoil/PortabilityLayer/FontRenderer.h

22 lines
432 B
C
Raw Normal View History

#pragma once
#include "FontHacks.h"
2020-09-12 14:01:51 -04:00
struct IGpFont;
class GpIOStream;
2020-09-12 14:01:51 -04: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;
virtual RenderedFont *LoadCache(GpIOStream *stream) = 0;
virtual bool SaveCache(const RenderedFont *rfont, GpIOStream *stream) = 0;
static FontRenderer *GetInstance();
};
}