diff --git a/cocos/editor-support/cocostudio/WidgetReader/TextReader/TextReader.cpp b/cocos/editor-support/cocostudio/WidgetReader/TextReader/TextReader.cpp index 2e2fa468d0..0c08af624a 100644 --- a/cocos/editor-support/cocostudio/WidgetReader/TextReader/TextReader.cpp +++ b/cocos/editor-support/cocostudio/WidgetReader/TextReader/TextReader.cpp @@ -163,15 +163,7 @@ namespace cocostudio label->setFontSize(fontSize); std::string fontName = options.has_fontname() ? options.fontname() : "微软雅黑"; - - std::string fontFilePath = protocolBuffersPath.append(fontName); - if (FileUtils::getInstance()->isFileExist(fontFilePath)) - { - label->setFontName(fontFilePath); - } - else{ - label->setFontName(fontName); - } + label->setFontName(fontName); bool aw = options.has_areawidth(); bool ah = options.has_areaheight();