From 99766cdd039e24dd19ec15edf370f0d1bf9c22c4 Mon Sep 17 00:00:00 2001 From: zhangbin Date: Fri, 11 Apr 2014 20:17:34 +0800 Subject: [PATCH] fix the error show of ` FontTest` --- tests/lua-tests/src/FontTest/FontTest.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/lua-tests/src/FontTest/FontTest.lua b/tests/lua-tests/src/FontTest/FontTest.lua index aa5e5e3282..1e19a714ae 100644 --- a/tests/lua-tests/src/FontTest/FontTest.lua +++ b/tests/lua-tests/src/FontTest/FontTest.lua @@ -37,12 +37,12 @@ local function showFont(ret, pFont) ret:removeChildByTag(kTagLabel3, true) ret:removeChildByTag(kTagLabel4, true) - local top = cc.Label:createWithSystemFont(pFont, pFont, 24) - local left = cc.Label:createWithSystemFont("alignment left", pFont, fontSize, + local top = cc.Label:createWithTTF(pFont, pFont, 24) + local left = cc.Label:createWithTTF("alignment left", pFont, fontSize, blockSize, cc.TEXT_ALIGNMENT_LEFT, verticalAlignment[vAlignIdx]) - local center = cc.Label:createWithSystemFont("alignment center", pFont, fontSize, + local center = cc.Label:createWithTTF("alignment center", pFont, fontSize, blockSize, cc.TEXT_ALIGNMENT_CENTER, verticalAlignment[vAlignIdx]) - local right = cc.Label:createWithSystemFont("alignment right", pFont, fontSize, + local right = cc.Label:createWithTTF("alignment right", pFont, fontSize, blockSize, cc.TEXT_ALIGNMENT_RIGHT, verticalAlignment[vAlignIdx]) local leftColor = cc.LayerColor:create(cc.c4b(100, 100, 100, 255), blockSize.width, blockSize.height)