Package de.lessvoid.nifty.renderer.lwjgl.render.font

Examples of de.lessvoid.nifty.renderer.lwjgl.render.font.CharacterInfo


    }
    return 0;
  }

  public Integer getCharacterAdvance(final char currentCharacter, final char nextCharacter, final float size) {
    CharacterInfo currentCharacterInfo = font.getChar(currentCharacter);
    if (currentCharacterInfo == null) {
      return null;
    } else {
      return new Integer(
          (int) (currentCharacterInfo.getXadvance() * size + getKerning(currentCharacterInfo, nextCharacter)));
    }
  }
View Full Code Here

TOP

Related Classes of de.lessvoid.nifty.renderer.lwjgl.render.font.CharacterInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.