mirror of
https://github.com/elasota/Aerofoil.git
synced 2026-03-01 21:34:15 +00:00
23 lines
561 B
C
23 lines
561 B
C
|
|
#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];
|
||
|
|
};
|