List of usage examples for com.badlogic.gdx.graphics.g2d BitmapFontCache setWrappedText
public TextBounds setWrappedText(CharSequence str, float x, float y, float wrapWidth)
From source file:com.ridiculousRPG.ui.DisplayPlainTextService.java
License:Apache License
private BitmapFontCache createMsg(CharSequence text, float color, float x, float y, float wrapWidth) { BitmapFontCache bfc = fontCachePool.obtain(font); bfc.setColor(color);/*w ww . jav a 2 s .co m*/ if (wrapWidth > 0f) bfc.setWrappedText(text, x, y, wrapWidth); else bfc.setMultiLineText(text, x, y); return bfc; }