19 lines
372 B
C++
19 lines
372 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <filesystem>
|
|
|
|
class FontGlyph;
|
|
|
|
class IFontEngine
|
|
{
|
|
public:
|
|
IFontEngine() = default;
|
|
virtual ~IFontEngine() = default;
|
|
|
|
virtual void initialize(){};
|
|
|
|
virtual void loadFontFace(const std::filesystem::path& fontFile, int penSize = 16) = 0;
|
|
|
|
virtual std::unique_ptr<FontGlyph> loadGlyph(unsigned charCode) = 0;
|
|
};
|