Package org.mt4j.components.visibleComponents.font

Examples of org.mt4j.components.visibleComponents.font.BitmapFont


    //TODO bitmap font size seems different to same size vector font, we must have check descent -> textarea -> res*em*etc
    //TODO eureka font -  numbers baseline wrong?
   
    //Create the bitmap font
    BitmapFontCharacter[] characters = bitMapCharacters.toArray(new BitmapFontCharacter[bitMapCharacters.size()]);
    BitmapFont bitmapFont = new BitmapFont(characters, defaultHorizontalAdvX, fontFamily, fontMaxAscent, fontMaxDescent, unitsPerEm, originalFontSize,
        fillColor,
        strokeColor,
        antiAliased
    );
    bitmapFont.setFontFileName(fontFileName);
    return bitmapFont;
  }
View Full Code Here


   *
   * @param scalable the new bitmap font scalable
   */
  public void setBitmapFontTextureFiltered(boolean scalable){
    if (MT4jSettings.getInstance().isOpenGlMode() && this.getFont() instanceof BitmapFont){
      BitmapFont font = (BitmapFont)this.getFont();
      IFontCharacter[] characters = font.getCharacters();
      for (int i = 0; i < characters.length; i++) {
        IFontCharacter fontCharacter = characters[i];
        if (fontCharacter instanceof BitmapFontCharacter) {
          BitmapFontCharacter bChar = (BitmapFontCharacter) fontCharacter;
          bChar.setTextureFiltered(scalable);
View Full Code Here

TOP

Related Classes of org.mt4j.components.visibleComponents.font.BitmapFont

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.