From 73f4e013f18116010a85f7c2c44c62098e9ae123 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 6 Jan 2016 13:26:05 +0200 Subject: [PATCH] Font kerning is no longer ignored in intermission screen See http://forum.zdoom.org/viewtopic.php?t=50304 --- src/intermission/intermission.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intermission/intermission.cpp b/src/intermission/intermission.cpp index 2a52df58a..a19d0a479 100644 --- a/src/intermission/intermission.cpp +++ b/src/intermission/intermission.cpp @@ -329,6 +329,7 @@ void DIntermissionScreenText::Drawer () int c; const FRemapTable *range; 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 // line feed characters. @@ -380,6 +381,7 @@ void DIntermissionScreenText::Drawer () } pic = SmallFont->GetChar (c, &w); + w += kerning; w *= CleanXfac; if (cx + w > SCREENWIDTH) continue;