From 26518f8660d2f9b64c00a2a1a50430e0460b9545 Mon Sep 17 00:00:00 2001 From: Kevin Caccamo Date: Sun, 15 Jan 2023 00:25:16 -0500 Subject: [PATCH] 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 --- src/common/fonts/font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/fonts/font.cpp b/src/common/fonts/font.cpp index 011a9cadb..98763724f 100644 --- a/src/common/fonts/font.cpp +++ b/src/common/fonts/font.cpp @@ -422,7 +422,7 @@ void FFont::ReadSheetFont(TArray &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);