stuff-from-scratch/src/fonts/IFontEngine.h
2022-11-15 15:50:36 +00:00

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;
};