mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-19 08:01:50 +00:00
- fixed handling for Turkish i's.
* islowermap and isuppermap were not set for the new characters. * special handling for the lowercase dotted i in allcaps fonts returned the wrong character.
This commit is contained in:
parent
78ef506f5f
commit
e3f8230035
2 changed files with 3 additions and 1 deletions
|
@ -763,7 +763,7 @@ int FFont::GetCharCode(int code, bool needpic) const
|
|||
// a similar check is needed for the small i in allcaps fonts. Here we cannot simply remap to an existing character, so the small dotted i must be placed at code point 0080.
|
||||
if (code == 'i' && LastChar >= 0x80 && Chars[0x80 - FirstChar].OriginalPic != nullptr)
|
||||
{
|
||||
return 0x131;
|
||||
return 0x80;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1138,6 +1138,8 @@ struct InitLowerUpper
|
|||
// Turkish 'I's.
|
||||
upperforlower[0x131] = 'I';
|
||||
lowerforupper[0x130] = 'i';
|
||||
islowermap[0x131] = true;
|
||||
isuppermap[0x130] = true;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue