From 182a9173388afd844385900e032c86f5a36fa2fd Mon Sep 17 00:00:00 2001 From: kaetemi Date: Fri, 30 Oct 2020 06:37:52 +0800 Subject: [PATCH] Make control characters printable --- nel/src/3d/font_manager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nel/src/3d/font_manager.cpp b/nel/src/3d/font_manager.cpp index 9e954ac1f..da8573ef7 100644 --- a/nel/src/3d/font_manager.cpp +++ b/nel/src/3d/font_manager.cpp @@ -146,6 +146,8 @@ void CFontManager::computeString (NLMISC::CUtfStringView sv, { // Creating font k.Char = *it; + if (k.Char < 0x20) + k.Char += 0x2400; k.FontGenerator = fontGen; k.Size = fontSize; k.Embolden = embolden; @@ -300,6 +302,8 @@ void CFontManager::computeStringInfo ( NLMISC::CUtfStringView sv, { // Creating font k.Char = *it; + if (k.Char < 0x20) + k.Char += 0x2400; k.FontGenerator = fontGen; k.Size = fontSize; k.Embolden = embolden;