mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 13:31:37 +00:00
- fix character substitution for mixed case fonts and text update.
This commit is contained in:
parent
7a6b133e93
commit
653336de24
2 changed files with 758 additions and 712 deletions
|
@ -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
Loading…
Reference in a new issue