private float getSmoothingFactor () { final DistanceFieldFont font = (DistanceFieldFont)super.getFont(); return font.getDistanceFieldSmoothing() * font.getScaleX(); }
private float getSmoothingFactor () { final DistanceFieldFont font = (DistanceFieldFont)super.getFont(); return font.getDistanceFieldSmoothing() * font.getScaleX(); }
private void computePrefSize () { prefSizeInvalid = false; GlyphLayout prefSizeLayout = Label.prefSizeLayout; if (wrap && ellipsis == null) { float width = getWidth(); if (style.background != null) width -= style.background.getLeftWidth() + style.background.getRightWidth(); prefSizeLayout.setText(cache.getFont(), text, Color.WHITE, width, Align.left, true); } else prefSizeLayout.setText(cache.getFont(), text); prefSize.set(prefSizeLayout.width, prefSizeLayout.height); }
private void computePrefSize () { prefSizeInvalid = false; GlyphLayout prefSizeLayout = Label.prefSizeLayout; if (wrap && ellipsis == null) { float width = getWidth(); if (style.background != null) width -= style.background.getLeftWidth() + style.background.getRightWidth(); prefSizeLayout.setText(cache.getFont(), text, Color.WHITE, width, Align.left, true); } else prefSizeLayout.setText(cache.getFont(), text); prefSize.set(prefSizeLayout.width, prefSizeLayout.height); }
private void scaleAndComputePrefSize () { BitmapFont font = cache.getFont(); float oldScaleX = font.getScaleX(); float oldScaleY = font.getScaleY(); if (fontScaleChanged) font.getData().setScale(fontScaleX, fontScaleY); computePrefSize(); if (fontScaleChanged) font.getData().setScale(oldScaleX, oldScaleY); }
private void scaleAndComputePrefSize () { BitmapFont font = cache.getFont(); float oldScaleX = font.getScaleX(); float oldScaleY = font.getScaleY(); if (fontScaleChanged) font.getData().setScale(fontScaleX, fontScaleY); computePrefSize(); if (fontScaleChanged) font.getData().setScale(oldScaleX, oldScaleY); }
public void layout () { BitmapFont font = cache.getFont(); float oldScaleX = font.getScaleX(); float oldScaleY = font.getScaleY(); y += cache.getFont().isFlipped() ? 0 : height - textHeight; y += style.font.getDescent(); } else if ((labelAlign & Align.bottom) != 0) { y += cache.getFont().isFlipped() ? height - textHeight : 0; y -= style.font.getDescent(); } else { y += (height - textHeight) / 2; if (!cache.getFont().isFlipped()) y += textHeight;
public void layout () { BitmapFont font = cache.getFont(); float oldScaleX = font.getScaleX(); float oldScaleY = font.getScaleY(); y += cache.getFont().isFlipped() ? 0 : height - textHeight; y += style.font.getDescent(); } else if ((labelAlign & Align.bottom) != 0) { y += cache.getFont().isFlipped() ? height - textHeight : 0; y -= style.font.getDescent(); } else { y += (height - textHeight) / 2; if (!cache.getFont().isFlipped()) y += textHeight;
private float getSmoothingFactor () { final DistanceFieldFont font = (DistanceFieldFont)super.getFont(); return font.getDistanceFieldSmoothing() * font.getScaleX(); }
private void computePrefSize () { prefSizeInvalid = false; GlyphLayout prefSizeLayout = Label.prefSizeLayout; if (wrap && ellipsis == null) { float width = getWidth(); if (style.background != null) width -= style.background.getLeftWidth() + style.background.getRightWidth(); prefSizeLayout.setText(cache.getFont(), text, Color.WHITE, width, Align.left, true); } else prefSizeLayout.setText(cache.getFont(), text); prefSize.set(prefSizeLayout.width, prefSizeLayout.height); }
private void scaleAndComputePrefSize () { BitmapFont font = cache.getFont(); float oldScaleX = font.getScaleX(); float oldScaleY = font.getScaleY(); if (fontScaleChanged) font.getData().setScale(fontScaleX, fontScaleY); computePrefSize(); if (fontScaleChanged) font.getData().setScale(oldScaleX, oldScaleY); }
public void layout () { BitmapFont font = cache.getFont(); float oldScaleX = font.getScaleX(); float oldScaleY = font.getScaleY(); y += cache.getFont().isFlipped() ? 0 : height - textHeight; y += style.font.getDescent(); } else if ((labelAlign & Align.bottom) != 0) { y += cache.getFont().isFlipped() ? height - textHeight : 0; y -= style.font.getDescent(); } else { y += (height - textHeight) / 2; if (!cache.getFont().isFlipped()) y += textHeight;