Files
Aerofoil/PortabilityLayer/HostFontHandler.h

24 lines
393 B
C
Raw Normal View History

2019-12-21 18:40:17 -05:00
#pragma once
2019-12-21 18:40:17 -05:00
namespace PortabilityLayer
{
class IOStream;
class HostFont;
2019-12-21 18:40:17 -05:00
class HostFontHandler
{
public:
virtual void Shutdown() = 0;
2019-12-21 18:40:17 -05:00
virtual HostFont *LoadFont(IOStream *stream) = 0;
virtual bool KeepStreamOpen() const = 0;
2019-12-21 18:40:17 -05:00
static void SetInstance(HostFontHandler *instance);
static HostFontHandler *GetInstance();
private:
static HostFontHandler *ms_instance;
};
}