- fix character substitution for mixed case fonts and text update.

This commit is contained in:
Christoph Oelckers 2020-02-16 13:51:31 +01:00
parent 7a6b133e93
commit 653336de24
2 changed files with 758 additions and 712 deletions

View file

@ -1226,6 +1226,19 @@ FFont::FFont (int lump)
void FFont::FixXMoves()
{
if (FirstChar < 'a' && LastChar >= 'z')
{
MixedCase = true;
// First check if this is a mixed case font.
// For this the basic Latin small characters all need to be present.
for (int i = 'a'; i <= 'z'; i++)
if (Chars[i - FirstChar].OriginalPic == nullptr)
{
MixedCase = false;
break;
}
}
for (int i = 0; i <= LastChar - FirstChar; ++i)
{
if (Chars[i].XMove == INT_MIN)

File diff suppressed because it is too large Load diff