Added basic kerning support for TrueType and BMFont fonts (resolves issue #1055.)

This commit is contained in:
Alex Szpakowski
2015-07-02 21:07:34 -03:00
parent 4550409ffa
commit bf432aff7c
8 changed files with 80 additions and 7 deletions
+5
View File
@@ -105,6 +105,11 @@ public:
**/
virtual bool hasGlyphs(const std::string &text) const;
/**
* Gets the amount of horizontal kerning between two glyphs.
**/
virtual float getKerning(uint32 leftglyph, uint32 rightglyph) const;
protected:
FontMetrics metrics;