From c4e4c7f4f15728d4b15f918f34b8149ee5ceec03 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 1 Oct 2025 23:57:46 +0000 Subject: [PATCH] BLF: disable print for unicode character not being found in the font This is overly noisy in some cases (such as browsing the file-system) it can flood the stdout with messages that aren't an error to be fixed. --- source/blender/blenfont/intern/blf_glyph.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/blender/blenfont/intern/blf_glyph.cc b/source/blender/blenfont/intern/blf_glyph.cc index 5a144003aa4..6bb06209793 100644 --- a/source/blender/blenfont/intern/blf_glyph.cc +++ b/source/blender/blenfont/intern/blf_glyph.cc @@ -830,7 +830,9 @@ static FT_UInt blf_glyph_index_from_charcode(FontBLF **font, const uint charcode } #ifndef NDEBUG - printf("Unicode character U+%04X not found in loaded fonts. \n", charcode); + /* Disable this print even in debug mode as it floods the console + * when browsing a file-system containing unknown characters. */ + // printf("Unicode character U+%04X not found in loaded fonts. \n", charcode); #endif return 0;