2020-09-12 11:52:19 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "EGpFontHandlerType.h"
|
|
|
|
|
|
2020-09-12 14:01:51 -04:00
|
|
|
struct IGpFontHandler;
|
2020-09-12 11:52:19 -04:00
|
|
|
|
|
|
|
|
struct GpFontHandlerProperties;
|
|
|
|
|
|
|
|
|
|
class GpFontHandlerFactory
|
|
|
|
|
{
|
|
|
|
|
public:
|
2020-09-12 14:01:51 -04:00
|
|
|
typedef IGpFontHandler *(*FactoryFunc_t)(const GpFontHandlerProperties &properties);
|
2020-09-12 11:52:19 -04:00
|
|
|
|
2020-09-12 14:01:51 -04:00
|
|
|
static IGpFontHandler *CreateFontHandler(const GpFontHandlerProperties &properties);
|
2020-09-12 11:52:19 -04:00
|
|
|
static void RegisterFontHandlerFactory(EGpFontHandlerType type, FactoryFunc_t func);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
static FactoryFunc_t ms_registry[EGpFontHandlerType_Count];
|
|
|
|
|
};
|