Files
Aerofoil/PortabilityLayer/FontManager.h
2020-01-18 18:20:16 -05:00

26 lines
641 B
C++

#pragma once
#include "FontHacks.h"
namespace PortabilityLayer
{
class FontFamily;
class HostFont;
class RenderedFont;
class FontManager
{
public:
virtual void Init() = 0;
virtual void Shutdown() = 0;
virtual FontFamily *GetSystemFont(int fontSize, int variationFlags) const = 0;
virtual FontFamily *GetApplicationFont(int fontSize, int variationFlags) const = 0;
virtual RenderedFont *GetRenderedFont(HostFont *font, int size, bool aa, FontHacks fontHacks) = 0;
virtual RenderedFont *GetRenderedFontFromFamily(FontFamily *fontFamily, int fontSize, bool aa, int flags) = 0;
static FontManager *GetInstance();
};
}