Character with ASCII code 9 is tab

svn-id: r28934
This commit is contained in:
Filippos Karapetis 2007-09-17 22:56:28 +00:00
parent ef0df159f1
commit 86b3c8ddeb
2 changed files with 2 additions and 1 deletions

View File

@ -332,7 +332,7 @@ void Font::outFont(const FontStyle &drawFont, Surface *ds, const char *text, siz
// Check if character is defined
if ((drawFont.fontCharEntry[c_code].index == 0) && (c_code != FONT_FIRSTCHAR)) {
#if FONT_SHOWUNDEFINED
if (c_code == FONT_CH_SPACE || c_code == 9) {
if (c_code == FONT_CH_SPACE || c_code == FONT_CH_TAB) {
textPoint.x += drawFont.fontCharEntry[c_code].tracking;
continue;
}

View File

@ -39,6 +39,7 @@ namespace Saga {
// have a valid offset of '0'
#define FONT_FIRSTCHAR 33
#define FONT_CH_TAB 9
#define FONT_CH_SPACE 32
#define FONT_CH_QMARK 63