Package com.jgraph.gaeawt.java.awt.font

Examples of com.jgraph.gaeawt.java.awt.font.FontRenderContext


     * @param context the specified Graphics context
     *
     * @return a FontRenderContext of the specified Graphics context.
     */
    private FontRenderContext getFRCFromGraphics(Graphics context){
        FontRenderContext frc;
        if (context instanceof Graphics2D) {
            frc = ((Graphics2D)context).getFontRenderContext();
        } else {
            frc = new FontRenderContext(null, false, false);
        }

        return frc;

    }
View Full Code Here


    Graphics2D g2 = imageARGB.createGraphics();
    g2.rotate(-Math.PI / 12, image.getWidth() / 2, image.getHeight() / 2);
    String s = "bella";
    Font font = new Font("Serif", Font.PLAIN, 192);
    FontRenderContext frc = g2.getFontRenderContext();
    //GlyphVector gv = font.createGlyphVector(frc, s);
    //Shape clippingShape = gv.getOutline(10, 200);
    // FIXME when font rendering implemented
    //g2.clip(clippingShape);
    g2.drawImage(image, 0, 0, null);
View Full Code Here

      else
        at = null;

      boolean isAa = (hints.get(RenderingHints.KEY_TEXT_ANTIALIASING) == RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
      boolean isFm = (hints.get(RenderingHints.KEY_FRACTIONALMETRICS) == RenderingHints.VALUE_FRACTIONALMETRICS_ON);
      frc = new FontRenderContext(at, isAa, isFm);
    }
    return frc;
  }
View Full Code Here

        RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
    g2d.setRenderingHint(RenderingHints.KEY_RENDERING,
        RenderingHints.VALUE_RENDER_QUALITY);
    g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
        RenderingHints.VALUE_ANTIALIAS_ON);
    FontRenderContext frc = g2d.getFontRenderContext();
    //String font_name = RipperFontSelector.choose_font.choice.getSelectedItem();
    //Log.log(font_name);
    int size = 256;
    Font font = new Font(font_name, font_style, size);
    GlyphVector gv = font.createGlyphVector(frc, "" + (char) number);
View Full Code Here

TOP

Related Classes of com.jgraph.gaeawt.java.awt.font.FontRenderContext

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.