Cocos2d-x  v3.17
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
FontDefinition Struct Reference

Font attributes. More...

Public Attributes

std::string _fontName
 font name
 
var _fontName
 font name
 
local _fontName
 font name
 
int _fontSize
 font size
 
var _fontSize
 font size
 
local _fontSize
 font size
 
TextHAlignment _alignment
 horizontal alignment
 
var _alignment
 horizontal alignment
 
local _alignment
 horizontal alignment
 
TextVAlignment _vertAlignment
 vertical alignment
 
var _vertAlignment
 vertical alignment
 
local _vertAlignment
 vertical alignment
 
Size _dimensions
 rendering box
 
var _dimensions
 rendering box
 
local _dimensions
 rendering box
 
Color3B _fontFillColor
 font color
 
var _fontFillColor
 font color
 
local _fontFillColor
 font color
 
GLubyte _fontAlpha
 font alpha
 
var _fontAlpha
 font alpha
 
local _fontAlpha
 font alpha
 
FontShadow _shadow
 font shadow
 
var _shadow
 font shadow
 
local _shadow
 font shadow
 
FontStroke _stroke
 font stroke
 
var _stroke
 font stroke
 
local _stroke
 font stroke
 
bool _enableWrap
 enable text wrap
 
var _enableWrap
 enable text wrap
 
local _enableWrap
 enable text wrap
 
int _overflow
 There are 4 overflows: none, clamp, shrink and resize_height. More...
 
var _overflow
 There are 4 overflows: none, clamp, shrink and resize_height. More...
 
local _overflow
 There are 4 overflows: none, clamp, shrink and resize_height. More...
 

Detailed Description

Font attributes.

Member Data Documentation

int _overflow

There are 4 overflows: none, clamp, shrink and resize_height.

The corresponding integer values are 0, 1, 2, 3 respectively For more information, please refer to Label::Overflow enum class.

var _overflow

There are 4 overflows: none, clamp, shrink and resize_height.

The corresponding integer values are 0, 1, 2, 3 respectively For more information, please refer to Label::Overflow enum class.

local _overflow

There are 4 overflows: none, clamp, shrink and resize_height.

The corresponding integer values are 0, 1, 2, 3 respectively For more information, please refer to Label::Overflow enum class.


The documentation for this struct was generated from the following file: