From 8fc6ec3b3554e95e509979353a4f28b66a2cd55c Mon Sep 17 00:00:00 2001 From: kaetemi Date: Wed, 28 Oct 2020 01:03:13 +0800 Subject: [PATCH] Show box character instead of dot --- nel/src/3d/font_generator.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nel/src/3d/font_generator.cpp b/nel/src/3d/font_generator.cpp index 44d8f5ab0..0bad785a6 100644 --- a/nel/src/3d/font_generator.cpp +++ b/nel/src/3d/font_generator.cpp @@ -307,11 +307,13 @@ uint8 *CFontGenerator::getBitmap (ucchar c, uint32 size, bool embolden, bool obl // retrieve glyph index from character code FT_UInt glyph_index = FT_Get_Char_Index (_Face, c); + /* if (glyph_index == 0) { // no glyph available, replace with a dot glyph_index = FT_Get_Char_Index (_Face, ucchar('.')); } + */ // load glyph image into the slot (erase previous one) error = FT_Load_Glyph (_Face, glyph_index, FT_LOAD_DEFAULT);