mirror of
https://github.com/love2d/love.git
synced 2026-08-20 04:30:09 +02:00
Added basic kerning support for TrueType and BMFont fonts (resolves issue #1055.)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user