Fix Y position of characters in monospace fonts

The issue was either a typo, or a false assumption that all monospace font characters would be in squares on the sheet. Fixes #1937
This commit is contained in:
Kevin Caccamo 2023-01-15 00:25:16 -05:00 committed by Christoph Oelckers
parent 5e464d3e93
commit 26518f8660
1 changed files with 1 additions and 1 deletions

View File

@ -422,7 +422,7 @@ void FFont::ReadSheetFont(TArray<FolderEntry> &folderdata, int width, int height
{
for (int x = 0; x < numtex_x; x++)
{
auto image = new FSheetTexture(sheetBitmaps.Size() - 1, x * width, y * width, width, height);
auto image = new FSheetTexture(sheetBitmaps.Size() - 1, x * width, y * height, width, height);
FImageTexture *imgtex = new FImageTexture(image);
auto gtex = MakeGameTexture(imgtex, nullptr, ETextureType::FontChar);
gtex->SetWorldPanning(true);