Cocos2d-x  v4
FontDefinition Struct Reference

Public Attributes

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

Detailed Description

Font attributes.

Member Data Documentation

◆ _overflow

int _overflow = 0

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: