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