1
0
Fork 0

Font: add FontDescription class.

This commit is contained in:
Henrik Hautakoski 2020-01-06 00:18:07 +01:00
parent 2dd1187ff2
commit 6e14209aae
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#ifndef SPECTRE_GRAPHICS_FONT_FONTDESCRIPTION_H
#define SPECTRE_GRAPHICS_FONT_FONTDESCRIPTION_H
namespace sp {
class FontDescription
{
public :
void hinting(bool value = true);
bool isHintingEnabled() const;
protected :
// True if hinting is enabled. false otherwise.
bool m_hinting = true;
};
} // namespace sp
#endif /* SPECTRE_GRAPHICS_FONT_FONTDESCRIPTION_H */

View file

@ -0,0 +1,16 @@
#include <Spectre/Graphics/Font/FontDescription.h>
namespace sp {
void FontDescription::hinting(bool value)
{
m_hinting = value;
}
bool FontDescription::isHintingEnabled() const
{
return m_hinting;
}
} // namespace sp