From e5c0c63e3e24f7a7e9ef16f57af788e09b679e28 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Sat, 24 Apr 2021 21:44:40 +0300 Subject: [PATCH] Draw tab char as space --- nel/src/3d/font_manager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nel/src/3d/font_manager.cpp b/nel/src/3d/font_manager.cpp index 3d468f987..a2f0f6cb2 100644 --- a/nel/src/3d/font_manager.cpp +++ b/nel/src/3d/font_manager.cpp @@ -146,6 +146,9 @@ void CFontManager::computeString (NLMISC::CUtfStringView sv, { // Creating font k.Char = *it; + // draw tab as space + if (k.Char == '\t') + k.Char = ' '; if (k.Char < 0x20) // Control Characters k.Char += 0x2400; if (k.Char == 0x7F) // DEL @@ -304,6 +307,9 @@ void CFontManager::computeStringInfo ( NLMISC::CUtfStringView sv, { // Creating font k.Char = *it; + // draw tab as space + if (k.Char == '\t') + k.Char = ' '; if (k.Char < 0x20) k.Char += 0x2400; k.FontGenerator = fontGen;