Clean text rendering in editor.
This commit is contained in:
parent
290b64e230
commit
f16dd7c0d9
45 changed files with 59 additions and 60 deletions
|
@ -1,7 +1,7 @@
|
|||
#include "FontGlyph.h"
|
||||
|
||||
FontGlyph::FontGlyph(unsigned width, unsigned height, unsigned bearingX, unsigned bearingY,
|
||||
unsigned advanceX, std::unique_ptr<Image<unsigned char> > image)
|
||||
FontGlyph::FontGlyph(unsigned width, unsigned height, int bearingX, int bearingY,
|
||||
int advanceX, std::unique_ptr<Image<unsigned char> > image)
|
||||
: mImage(std::move(image)),
|
||||
mWidth(width),
|
||||
mHeight(height),
|
||||
|
@ -27,17 +27,17 @@ unsigned FontGlyph::getHeight() const
|
|||
return mHeight;
|
||||
}
|
||||
|
||||
unsigned FontGlyph::getBearingX() const
|
||||
int FontGlyph::getBearingX() const
|
||||
{
|
||||
return mBearingX;
|
||||
}
|
||||
|
||||
unsigned FontGlyph::getBearingY() const
|
||||
int FontGlyph::getBearingY() const
|
||||
{
|
||||
return mBearingY;
|
||||
}
|
||||
|
||||
unsigned FontGlyph::getAdvanceX() const
|
||||
int FontGlyph::getAdvanceX() const
|
||||
{
|
||||
return mAdvanceX;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue