1
0
Fork 0

Font: rename Driver stuff to Engine and move subdirectory

This commit is contained in:
Henrik Hautakoski 2020-01-05 23:29:43 +01:00
parent 8b96338e24
commit 5c4eea4ae1
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745
11 changed files with 57 additions and 57 deletions

View file

@ -0,0 +1,35 @@
#ifndef SPECTRE_GRAPHICS_FONT_ENGINE_FONTENGINE_H
#define SPECTRE_GRAPHICS_FONT_ENGINE_FONTENGINE_H
#include <string>
#include <Spectre/Graphics/Image.h>
#include <Spectre/Graphics/Font.h>
namespace sp {
class FontEngine
{
public :
FontEngine();
void setHinting(bool value);
virtual bool setCharacterSize(unsigned int size) = 0;
virtual bool loadFromFile(const std::string& filename) = 0;
virtual Font::Glyph loadGlyph(unsigned int codepoint, Image& img, unsigned int outlineSize = 0) = 0;
virtual std::string getName() = 0;
protected :
// True if hinting is enabled. false otherwise.
bool m_hinting;
};
} // namespace sp
#endif /* SPECTRE_GRAPHICS_FONT_ENGINE_FONTENGINE_H */