mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
Font kerning is no longer ignored in intermission screen
See http://forum.zdoom.org/viewtopic.php?t=50304
This commit is contained in:
parent
1c6a00059f
commit
73f4e013f1
1 changed files with 2 additions and 0 deletions
|
@ -329,6 +329,7 @@ void DIntermissionScreenText::Drawer ()
|
||||||
int c;
|
int c;
|
||||||
const FRemapTable *range;
|
const FRemapTable *range;
|
||||||
const char *ch = mText;
|
const char *ch = mText;
|
||||||
|
const int kerning = SmallFont->GetDefaultKerning();
|
||||||
|
|
||||||
// Count number of rows in this text. Since it does not word-wrap, we just count
|
// Count number of rows in this text. Since it does not word-wrap, we just count
|
||||||
// line feed characters.
|
// line feed characters.
|
||||||
|
@ -380,6 +381,7 @@ void DIntermissionScreenText::Drawer ()
|
||||||
}
|
}
|
||||||
|
|
||||||
pic = SmallFont->GetChar (c, &w);
|
pic = SmallFont->GetChar (c, &w);
|
||||||
|
w += kerning;
|
||||||
w *= CleanXfac;
|
w *= CleanXfac;
|
||||||
if (cx + w > SCREENWIDTH)
|
if (cx + w > SCREENWIDTH)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue