我需要在COCOS2d-Android中为CCLabel创建自定义字体。
currentVideoLabel = CCLabel.makeLabel(VideosLabels[currentSelected], "Faraco_Hand.ttf", winSize.width/41);
currentVideoLabel.setPosition(CGPoint.make(winSize.width/2, 20));
addChild(currentVideoLabel);发布于 2013-08-02 11:25:52
下载一些ttf字体,在folder.then中创建一个名为font的文件夹,将下载的ttf文件放在字体中,folder.You可以使用cclabel中的字体,如下所示
currentVideoLabel = CCLabel.makeLabel(VideosLabels[currentSelected], "Fonts/Faraco_Hand.ttf", winSize.width/41);实际上,android并不支持所有字体。但你可以试试。
https://stackoverflow.com/questions/17989124
复制相似问题