public float getPrefHeight () { if (prefSizeInvalid) scaleAndComputePrefSize(); float descentScaleCorrection = 1; if (fontScaleChanged) descentScaleCorrection = fontScaleY / style.font.getScaleY(); float height = prefSize.y - style.font.getDescent() * descentScaleCorrection * 2; Drawable background = style.background; if (background != null) height += background.getTopHeight() + background.getBottomHeight(); return height; }
public float getPrefHeight () { if (prefSizeInvalid) scaleAndComputePrefSize(); float descentScaleCorrection = 1; if (fontScaleChanged) descentScaleCorrection = fontScaleY / style.font.getScaleY(); float height = prefSize.y - style.font.getDescent() * descentScaleCorrection * 2; Drawable background = style.background; if (background != null) height += background.getTopHeight() + background.getBottomHeight(); return 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(); if (fontScaleChanged) font.getData().setScale(fontScaleX, fontScaleY);
public void layout () { BitmapFont font = cache.getFont(); float oldScaleX = font.getScaleX(); float oldScaleY = font.getScaleY(); if (fontScaleChanged) font.getData().setScale(fontScaleX, fontScaleY);
public float getPrefHeight () { if (prefSizeInvalid) scaleAndComputePrefSize(); float descentScaleCorrection = 1; if (fontScaleChanged) descentScaleCorrection = fontScaleY / style.font.getScaleY(); float height = prefSize.y - style.font.getDescent() * descentScaleCorrection * 2; Drawable background = style.background; if (background != null) height += background.getTopHeight() + background.getBottomHeight(); return 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); }
Log.e("Game", "mBitmapFont.getScaleX() : "+mBitmapFont.getScaleX() + ", mBitmapFont.getScaleY() "+mBitmapFont.getScaleY());
public void layout () { BitmapFont font = cache.getFont(); float oldScaleX = font.getScaleX(); float oldScaleY = font.getScaleY(); if (fontScaleChanged) font.getData().setScale(fontScaleX, fontScaleY);