2

I need to Create Custom Font for CCLabel in COCOS2d-Android.

currentVideoLabel = CCLabel.makeLabel(VideosLabels[currentSelected], "Faraco_Hand.ttf", winSize.width/41);
    currentVideoLabel.setPosition(CGPoint.make(winSize.width/2, 20));
    addChild(currentVideoLabel);
Bebin T.N
  • 2,539
  • 1
  • 24
  • 28
  • you should see the sample test example which is in the cocos2d-android library for the basic question It'll help you alot – Akarsh M Aug 01 '13 at 08:45

1 Answers1

0

download some ttf font , create a folder called Font in assets folder.then place the downloaded ttf file in fonts folder.You can use the font in cclabel like this

currentVideoLabel = CCLabel.makeLabel(VideosLabels[currentSelected], "Fonts/Faraco_Hand.ttf", winSize.width/41);

actually all fonts are not supported in android. but you may try some.

Sandeep R
  • 2,284
  • 3
  • 25
  • 51