Move font handler and platform-independent shell stuff

This commit is contained in:
elasota
2020-09-12 11:52:19 -04:00
parent 4a78f10975
commit 1d3c84a473
37 changed files with 597 additions and 117 deletions

View File

@@ -0,0 +1,22 @@
#pragma once
#include "EGpFontHandlerType.h"
namespace PortabilityLayer
{
class HostFontHandler;
}
struct GpFontHandlerProperties;
class GpFontHandlerFactory
{
public:
typedef PortabilityLayer::HostFontHandler *(*FactoryFunc_t)(const GpFontHandlerProperties &properties);
static PortabilityLayer::HostFontHandler *CreateFontHandler(const GpFontHandlerProperties &properties);
static void RegisterFontHandlerFactory(EGpFontHandlerType type, FactoryFunc_t func);
private:
static FactoryFunc_t ms_registry[EGpFontHandlerType_Count];
};