HDB: Add getter-setter for Kerning and Leading

This commit is contained in:
Nipun Garg 2019-06-23 05:46:36 +05:30 committed by Eugene Sandulenko
parent 954d1c649c
commit e7ddd0b527
2 changed files with 12 additions and 0 deletions

View File

@ -395,6 +395,16 @@ int DrawMan::animateTile(int tileIndex) {
return _tLookupArray[tileIndex].animIndex;
}
void DrawMan::setKernLead(int kern, int lead) {
_fontHeader.kerning = kern;
_fontHeader.leading = lead;
}
void DrawMan::getKernLead(int *kern, int *lead) {
*kern = _fontHeader.kerning;
*lead = _fontHeader.leading;
}
void DrawMan::setCursor(int x, int y) {
_cursorX = x;
_cursorY = y;

View File

@ -117,6 +117,8 @@ public:
// Font Functions
void setKernLead(int kern, int lead);
void getKernLead(int *kern, int *lead);
void setCursor(int x, int y);
void getCursor(int *x, int *y);