mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +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];
|
|
};
|