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

Most upvoted comments

@kalexmills Probably makes sense to comment on PR #2387 instead of commenting here and linking the PR. ๐Ÿ˜ƒ

If BitmapFontData markupEnabled is true, GlyphLayout parses colors. Label just uses a font, so just give it a font with color markup enabled.