From 0db9553537119d384637f6fe0c74ef540592f0b1 Mon Sep 17 00:00:00 2001 From: irov Date: Thu, 4 Jan 2024 22:18:50 +0200 Subject: [PATCH] fix python embed TextField getFontName --- src/Frameworks/PythonFramework/NodeScriptEmbedding.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Frameworks/PythonFramework/NodeScriptEmbedding.cpp b/src/Frameworks/PythonFramework/NodeScriptEmbedding.cpp index 09edc1fa4b..5011463aff 100644 --- a/src/Frameworks/PythonFramework/NodeScriptEmbedding.cpp +++ b/src/Frameworks/PythonFramework/NodeScriptEmbedding.cpp @@ -253,7 +253,7 @@ namespace Mengine ////////////////////////////////////////////////////////////////////////// const ConstString & s_TextField_getFontName( TextField * _textField ) { - const FontInterfacePtr & font = _textField->getFont(); + const FontInterfacePtr & font = _textField->calcFont(); const ConstString & fontName = font->getName();