Package com.badlogic.gdx.tools.hiero.unicodefont.effects

Examples of com.badlogic.gdx.tools.hiero.unicodefont.effects.Effect


    scratchGraphics.setComposite(AlphaComposite.Clear);
    scratchGraphics.fillRect(0, 0, MAX_GLYPH_SIZE, MAX_GLYPH_SIZE);
    scratchGraphics.setComposite(AlphaComposite.SrcOver);
    if (unicodeFont.getNativeRendering()) {
      for (Iterator iter = unicodeFont.getEffects().iterator(); iter.hasNext();) {
        Effect effect = (Effect)iter.next();
        if (effect instanceof ColorEffect) scratchGraphics.setColor(((ColorEffect)effect).getColor());
      }
      scratchGraphics.setColor(java.awt.Color.white);
      scratchGraphics.setFont(unicodeFont.getFont());
      scratchGraphics.drawString("" + (char)glyph.getCodePoint(), 0, unicodeFont.getAscent());
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.tools.hiero.unicodefont.effects.Effect

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.