Cocos Creator API

1.0.0

Cocos Creator is a highly customizable game development tool that utilizes the power of cocos2d-x.

FontDefinition

Module: cc

Common usage:

var fontDef = new cc.FontDefinition(); fontDef.fontName = "Arial"; fontDef.fontSize = 12; ...

OR using inline definition usefull for constructor injection

var fontDef = new cc.FontDefinition({ fontName: "Arial", fontSize: 12 });

Methods

FontDefinition
(
  • properties
)
FontDefinition

TODO

name type description
properties Object

(OPTIONAL) Allow inline FontDefinition

returns:

There are no methods that match your current filter settings. You can change your filter settings in the index section on this page. index