replace kFont with std::string
This commit is contained in:
@@ -184,9 +184,7 @@ void NodeTextInput::create()
|
||||
NodeBorder::create();
|
||||
if (!m_font.empty())
|
||||
{
|
||||
char font[64];
|
||||
sprintf(font, "%s-%d", m_font.c_str(), m_font_size);
|
||||
font_id = (kFont)const_hash(font);
|
||||
font_id = fmt::format("{}-{}", m_font, m_font_size);
|
||||
m_text_mesh.create();
|
||||
m_text_mesh.update(font_id, m_text);
|
||||
update_layout();
|
||||
|
||||
Reference in New Issue
Block a user