float oldScaleX = font.getScaleX();
float oldScaleY = font.getScaleY();
if (fontScaleX != 1 || fontScaleY != 1) font.setScale(fontScaleX, fontScaleY);
float width = getWidth(), height = getHeight();
StringBuilder text;
if (ellipse && width < bounds.width) {
float ellipseWidth = font.getBounds("...").width;
text = tempText != null ? tempText : (tempText = new StringBuilder());
text.setLength(0);
if (width > ellipseWidth) {
text.append(this.text, 0, font.computeVisibleGlyphs(this.text, 0, this.text.length, width - ellipseWidth));
text.append("...");
}
} else
text = this.text;
Drawable background = style.background;