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