public int stringHeight(String message) { if (LSystem.base() == null) { return 0; } initLayout(message); return textLayout.bounds.height; }
public int charHeight(char ch) { if (LSystem.base() == null) { return 0; } initLayout(String.valueOf(ch)); return textLayout.bounds.height; }
public int stringWidth(String message) { if (LSystem.base() == null) { return 0; } initLayout(message); return textLayout.stringWidth(message); }
public int charWidth(char ch) { if (LSystem.base() == null) { return 0; } initLayout(String.valueOf(ch)); return textLayout.bounds.width; }
public float getLeading() { initLayout(tmp); return textLayout.leading(); }
public float getDescent() { initLayout(tmp); return textLayout.descent(); }
@Override public float getAscent() { initLayout(tmp); return this._ascent == -1 ? textLayout.ascent() : this._ascent; }
@Override public int getHeight() { initLayout(tmp); return textLayout.bounds.height; }