From 580579285bc406063afccfd2029fa227951d95d9 Mon Sep 17 00:00:00 2001 From: "PSp..om" Date: Sun, 4 Nov 2012 03:45:11 +0000 Subject: [PATCH] Added a getter for size since it's the only way to compare a particular BitmapText's size to the BitmapFont size. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9946 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/font/BitmapText.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/src/core/com/jme3/font/BitmapText.java b/engine/src/core/com/jme3/font/BitmapText.java index 7b8b51b53..3b840a8cc 100644 --- a/engine/src/core/com/jme3/font/BitmapText.java +++ b/engine/src/core/com/jme3/font/BitmapText.java @@ -98,6 +98,10 @@ public class BitmapText extends Node { letters.invalidate(); } + public float getSize() { + return block.getSize(); + } + /** * * @param text charsequence to change text to