public void setVerticalAlignment(BitmapFont.VAlign align) {
        if (block.getTextBox() == null && align != VAlign.Top) {
            throw new RuntimeException("Bound is not set");
        }
        block.setVerticalAlignment(align);
        letters.invalidate();
        needRefresh = true;
    }
Set vertical alignment. Applicable only when text bound is set.

@param align the desired alignment (such as Align.Top)
jme3-core/src/main/java/com/jme3/font/BitmapText.java