Cocos2d-x  v3.15
FontDefinition Struct Reference

Font attributes. More...

Public Member Functions

 FontDefinition ()
 NA NA
 

Public Attributes

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

Detailed Description

Font attributes.

Member Data Documentation

◆ _overflow

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.


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