diff --git a/panda/src/text/textAssembler.cxx b/panda/src/text/textAssembler.cxx index a1d6183185..5742e5b6cc 100644 --- a/panda/src/text/textAssembler.cxx +++ b/panda/src/text/textAssembler.cxx @@ -30,6 +30,7 @@ #include "modelNode.h" #include +#include // for sprintf // This is the factor by which CT_small scales the character down. static const float small_accent_scale = 0.6f; @@ -1289,9 +1290,11 @@ assemble_row(TextAssembler::TextRow &row, additional_flags, glyph_scale, advance_scale); if (!got_glyph) { + char buffer[512]; + sprintf(buffer, "U+%04x", character); text_cat.warning() << "No definition in " << font->get_name() - << " for character " << character; + << " for character " << buffer; if (character < 128 && isprint((unsigned int)character)) { text_cat.warning(false) << " ('" << (char)character << "')"; diff --git a/panda/src/text/textFont.cxx b/panda/src/text/textFont.cxx index 091ae42448..98b6ea4af3 100644 --- a/panda/src/text/textFont.cxx +++ b/panda/src/text/textFont.cxx @@ -142,7 +142,6 @@ make_invalid_glyph() { _invalid_glyph = new TextGlyph(0, geom, RenderState::make_empty(), _line_height * 0.7f); - cerr << "made invalid glyph: " << _invalid_glyph << "\n"; } ////////////////////////////////////////////////////////////////////