Move font API to GpCommon

This commit is contained in:
elasota
2020-09-12 14:01:51 -04:00
parent f07137b52d
commit 987a1dea75
43 changed files with 189 additions and 190 deletions

View File

@@ -1,23 +1,17 @@
#pragma once
class GpIOStream;
struct IGpFontHandler;
namespace PortabilityLayer
{
class HostFont;
class HostFontHandler
{
public:
virtual void Shutdown() = 0;
virtual HostFont *LoadFont(GpIOStream *stream) = 0;
virtual bool KeepStreamOpen() const = 0;
static void SetInstance(HostFontHandler *instance);
static HostFontHandler *GetInstance();
static void SetInstance(IGpFontHandler *instance);
static IGpFontHandler *GetInstance();
private:
static HostFontHandler *ms_instance;
static IGpFontHandler *ms_instance;
};
}