Utility/SimpleTextDrawer: Add character spacing offset

This commit is contained in:
Lynix
2020-01-26 16:18:28 +01:00
parent 5dd37ed3d8
commit 11d51872fa
3 changed files with 26 additions and 4 deletions

View File

@@ -29,6 +29,7 @@ namespace Nz
void Clear() override;
const Rectf& GetBounds() const override;
inline float GetCharacterSpacingOffset() const;
inline unsigned int GetCharacterSize() const;
inline const Color& GetColor() const;
inline Font* GetFont() const;
@@ -46,6 +47,7 @@ namespace Nz
inline TextStyleFlags GetStyle() const;
inline const String& GetText() const;
inline void SetCharacterSpacingOffset(float offset);
inline void SetCharacterSize(unsigned int characterSize);
inline void SetColor(const Color& color);
inline void SetFont(Font* font);
@@ -112,6 +114,7 @@ namespace Nz
mutable bool m_glyphUpdated;
mutable float m_lastSeparatorPosition;
float m_lineSpacingFactor;
float m_characterSpacingOffset;
float m_maxLineWidth;
float m_outlineThickness;
unsigned int m_characterSize;