libgdx: Color markup language does not work for Scene2D Labels
Apparently itโs because Label wipes out the color specified in the markup language with its own Color property. The text does get parsed (i.e. [RED]velvet turns into velvet), but not recolored.
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 15 (8 by maintainers)
Commits related to this issue
- Added color chunk pooling. This should close #1934 properly. — committed to davebaol/libgdx by davebaol 10 years ago
@kalexmills Probably makes sense to comment on PR #2387 instead of commenting here and linking the PR. ๐
If BitmapFontData
markupEnabledis true, GlyphLayout parses colors. Label just uses a font, so just give it a font with color markup enabled.