mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Cleaned up some duplicated pixel format-related code in Font files.
--HG-- branch : minor
This commit is contained in:
@@ -49,6 +49,12 @@ class Rasterizer : public Object
|
||||
{
|
||||
public:
|
||||
|
||||
enum DataType
|
||||
{
|
||||
DATA_TRUETYPE,
|
||||
DATA_IMAGE,
|
||||
};
|
||||
|
||||
static love::Type type;
|
||||
|
||||
virtual ~Rasterizer();
|
||||
@@ -112,6 +118,8 @@ public:
|
||||
**/
|
||||
virtual float getKerning(uint32 leftglyph, uint32 rightglyph) const;
|
||||
|
||||
virtual DataType getDataType() const = 0;
|
||||
|
||||
protected:
|
||||
|
||||
FontMetrics metrics;
|
||||
|
||||
Reference in New Issue
Block a user