Examples of BitmapFont


Examples of com.jme3.font.BitmapFont

    super.initialize(stateManager, app);

    viewPort.setBackgroundColor(backgroundColor);

    // Load the HUD
    BitmapFont guiFont = assetManager.loadFont("Interface/Fonts/Default.fnt");
    hudText = new BitmapText(guiFont, false);
    hudText.setSize(24);
    hudText.setColor(ColorRGBA.White); // font color
    hudText.setLocalTranslation(10, app.getContext().getSettings().getHeight(), 0);
    hudText.setText(getHUDText());
View Full Code Here

Examples of com.jme3.font.BitmapFont

    top = createLine(tl, tr, true);
    left = createLine(tl, bl, true);
    right = createLine(tr, br, true);
    bottom = createLine(br, bl, true);

    BitmapFont myFont = GlobalObjectStore.<AssetManager>getObject(AssetManager.class).loadFont("Interface/Fonts/Console.fnt");
    t = new BitmapText(myFont, false);
    t.setColor(ColorRGBA.Pink);
    t.setBox(new Rectangle(0, 0, 100, 100));
    t.setAlignment(Align.Left);
    t.setVerticalAlignment(VAlign.Top);
View Full Code Here

Examples of mdesl.graphics.text.BitmapFont

    try {
      tex = new Texture(Util.getResource("res/tiles.png"), Texture.NEAREST);
      tex2 = new Texture(Util.getResource("res/ptsans_00.png"));
      tile = new TextureRegion(tex, 128, 64, 64, 64);
     
      font = new BitmapFont(Util.getResource("res/ptsans.fnt"), Util.getResource("res/ptsans_00.png"));
     
    } catch (IOException e) {
      // ... do something here ...
      Sys.alert("Error", "Could not decode images!");
      e.printStackTrace();
View Full Code Here

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
TOP
Copyright © 2018 www.massapi.com. 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.