Class cc.BMFontConfiguration

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.BMFontConfiguration has parsed _configuration of the the .fnt file

Method Summary

Class Detail

cc.BMFontConfiguration()
cc.BMFontConfiguration has parsed _configuration of the the .fnt file

Field Detail

{String} atlasName
atlas name
{Array} characterSet
Character Set defines the letters that actually exist in the font
{Number} commonHeight
FNTConfig: Common Height
{cc.FontDefHashElement} fontDefDictionary
values for FontDef
{cc.KerningHashElement} kerningDictionary
values for kerning
{cc.BMFontPadding} padding
Padding

Method Detail

  • <static> {cc.BMFontConfiguration|Null} cc.BMFontConfiguration.create(FNTfile)
    Create a cc.BMFontConfiguration
    // Example
    var conf = cc.BMFontConfiguration.create('myfont.fnt');
    Parameters:
    {String} FNTfile
    Returns:
    {cc.BMFontConfiguration|Null} returns the configuration or null if error
  • ctor()
    Constructor
  • {String} description()
    Description of BMFontConfiguration
    Returns:
    {String}
  • {String} getAtlasName()
    Returns:
    {String}
  • {Object} getCharacterSet()
    Returns:
    {Object}
  • {Boolean} initWithFNTfile(FNTfile)
    initializes a BitmapFontConfiguration with a FNT file
    Parameters:
    {String} FNTfile
    file path
    Returns:
    {Boolean}
  • setAtlasName(atlasName)
    Parameters:
    {String} atlasName