Jelajahi Sumber

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

PSp..om 13 tahun lalu
induk
melakukan
580579285b
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      engine/src/core/com/jme3/font/BitmapText.java

+ 4 - 0
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