You can create a glyph in a sprite. This way you can manipulate the text as a sprite.
Code example:
Note that this will return a sprite of one character. (For example, char 'A' is converted to a sprite.)
public Sprite getGlyphSprite (char ch) { Glyph glyph = Globals.g.font.getData().getGlyph(ch); Sprite s = new Sprite(Globals.g.font.getRegion().getTexture(), glyph.srcX,glyph.srcY,glyph.width, glyph.height); s.flip(false, true); s.setOrigin(glyph.width/2, glyph.height/2); return s; }
source share