fix the error show of ` FontTest`

This commit is contained in:
zhangbin 2014-04-11 20:17:34 +08:00
parent d611cfb49f
commit 99766cdd03
1 changed files with 4 additions and 4 deletions

View File

@ -37,12 +37,12 @@ local function showFont(ret, pFont)
ret:removeChildByTag(kTagLabel3, true) ret:removeChildByTag(kTagLabel3, true)
ret:removeChildByTag(kTagLabel4, true) ret:removeChildByTag(kTagLabel4, true)
local top = cc.Label:createWithSystemFont(pFont, pFont, 24) local top = cc.Label:createWithTTF(pFont, pFont, 24)
local left = cc.Label:createWithSystemFont("alignment left", pFont, fontSize, local left = cc.Label:createWithTTF("alignment left", pFont, fontSize,
blockSize, cc.TEXT_ALIGNMENT_LEFT, verticalAlignment[vAlignIdx]) 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]) 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]) blockSize, cc.TEXT_ALIGNMENT_RIGHT, verticalAlignment[vAlignIdx])
local leftColor = cc.LayerColor:create(cc.c4b(100, 100, 100, 255), blockSize.width, blockSize.height) local leftColor = cc.LayerColor:create(cc.c4b(100, 100, 100, 255), blockSize.width, blockSize.height)