Basic Font integration.
This commit is contained in:
parent
ce11c52ae5
commit
72123bc333
36 changed files with 325 additions and 198 deletions
|
@ -1,8 +1,20 @@
|
|||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <filesystem>
|
||||
|
||||
template<typename T>
|
||||
class Image;
|
||||
|
||||
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<Image<unsigned char> > loadGlyph(unsigned charCode) = 0;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue