From 2ed51e042d74cc735dbf811c6cd9bcbfd0ee0371 Mon Sep 17 00:00:00 2001 From: pipu Date: Thu, 30 Oct 2014 18:00:03 +0800 Subject: [PATCH] Modify that parsing attribute "fontName" of TextReader --- .../cocostudio/WidgetReader/TextReader/TextReader.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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();