From cb878294eae42ed67ec0f230d3a67ba813607230 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 20 May 2024 17:09:59 +0200 Subject: [PATCH] Minor fixes --- Source/Engine/Render2D/FontManager.cpp | 4 ++-- Source/Engine/UI/GUI/Common/Label.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Engine/Render2D/FontManager.cpp b/Source/Engine/Render2D/FontManager.cpp index 726209399..80d260e20 100644 --- a/Source/Engine/Render2D/FontManager.cpp +++ b/Source/Engine/Render2D/FontManager.cpp @@ -155,9 +155,9 @@ bool FontManager::AddNewEntry(Font* font, Char c, FontCharacterEntry& entry) // Get the index to the glyph in the font face const FT_UInt glyphIndex = FT_Get_Char_Index(face, c); #if !BUILD_RELEASE - if (glyphIndex == 0) + if (glyphIndex == 0 && c >= '!') { - LOG(Warning, "Font `{}` doesn't contain character `\\u{:x}`, consider choosing another font. ", String(face->family_name), c); + LOG(Warning, "Font `{}` doesn't contain character `\\u{:x}`, consider choosing another font.", String(face->family_name), c); } #endif diff --git a/Source/Engine/UI/GUI/Common/Label.cs b/Source/Engine/UI/GUI/Common/Label.cs index bfdad73b0..fcd66ff59 100644 --- a/Source/Engine/UI/GUI/Common/Label.cs +++ b/Source/Engine/UI/GUI/Common/Label.cs @@ -143,7 +143,7 @@ namespace FlaxEngine.GUI } /// - /// Gets or sets the custom material used to render the text. It must has domain set to GUI and have a public texture parameter named Font used to sample font atlas texture with font characters data. + /// Gets or sets the custom material used to render the text. It has to have domain set to GUI and have a public texture parameter named Font used to sample font atlas texture with font characters data. /// [EditorDisplay("Text Style"), EditorOrder(2025)] public MaterialBase Material { get; set; }