示例#1
0
        public BMFontInit()
        {
            CCSize s = CCDirector.SharedDirector.WinSize;

            var bmFont = new CCLabelBMFont();
            bmFont.Init();
            //CCLabelBMFont* bmFont = [CCLabelBMFont create:@"Foo" fntFile:@"arial-unicode-26"];
            bmFont.FntFile = "fonts/helvetica-32.fnt";
            bmFont.Label = ("It is working!");
            AddChild(bmFont);
            bmFont.Position = new CCPoint(s.Width / 2, s.Height / 4 * 2);
        }
示例#2
0
        public Issue1343()
        {
            CCSize s = CCDirector.SharedDirector.WinSize;

            var bmFont = new CCLabelBMFont();
            bmFont.Init();
            bmFont.FntFile = "fonts/font-issue1343.fnt";
            bmFont.Label = ("ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz.,'");
            AddChild(bmFont);
            bmFont.Scale = 0.3f;

            bmFont.Position = new CCPoint(s.Width / 2, s.Height / 4 * 2);
        }
示例#3
0
 public static new CCLabelBMFont Create()
 {
     var pRet = new CCLabelBMFont();
     pRet.Init();
     return pRet;
 }