Package org.apache.harmony.awt.gl.font

Examples of org.apache.harmony.awt.gl.font.WindowsFont


            gdipDrawNormalChars(g, gv.getFont(),
                    ((CommonGlyphVector)gv).charVector, len, x, y);
            return;
        }

        WindowsFont wf = (WindowsFont)gv.getFont().getPeer();
        long font = wf.getFontHandle();
        AffineTransform fontAT = gv.getFont().getTransform();

        double matrix[] = new double[6];
        double fontMatrix[] = new double[6];
        char chars[] = new char[len];
View Full Code Here


        int size = len;
        double positions[] = new double[size*2];
        char chars[] = new char[size];
        int count = 0;
        WindowsFont physFont = (WindowsFont)wcf.fPhysicalFonts[charFontIndex];
       
        long font = physFont.getFontHandle();

        AffineTransform fontAT = fnt.getTransform();

        double matrix[] = new double[6];
        double fontMatrix[] = new double[6];
View Full Code Here

     */
    @SuppressWarnings("deprecation")
    public void gdipDrawNormalString(Graphics2D g, String str, float x, float y) {
        long graphicsInfo = ((WinGDIPGraphics2D)g).getGraphicsInfo();

        WindowsFont wf = (WindowsFont)(g.getFont().getPeer());
        long font = wf.getFontHandle();
        int len = str.length();
       
        char[] chars = new char[len];
        double positions[] = new double[len*2];
        double matrix[] = new double[6];
        AffineTransform at = new AffineTransform(g.getFont().getTransform());
        at.getMatrix(matrix);

        float xPos = 0;
        float yPos = 0;
      
        int count = 0;
        for (int i=0; i < len; i++){
            char c = str.charAt(i);
            Glyph gl = wf.getGlyph(c);

            // We compare Advances because Width
            // of a char can be 0 (e.g. "Space" char)
            float advance = gl.getGlyphPointMetrics().getAdvance();
            if ( advance != 0){
View Full Code Here

    @SuppressWarnings("deprecation")
    public void gdipDrawNormalChars(Graphics2D g, Font fnt, char str[],
            int len, float x, float y) {
        long graphicsInfo = ((WinGDIPGraphics2D)g).getGraphicsInfo();

        WindowsFont wf = (WindowsFont)(fnt.getPeer());
        long font = wf.getFontHandle();
       
        char[] chars = new char[len];
        double positions[] = new double[len*2];
        double matrix[] = new double[6];
       
        AffineTransform at = new AffineTransform(fnt.getTransform());
        at.getMatrix(matrix);
        at.preConcatenate(AffineTransform.getTranslateInstance(x, y));

        float xPos = 0;
        float yPos = 0;
      
        int count = 0;
        for (int i=0; i < len; i++){
            char c = str[i];
            Glyph gl = wf.getGlyph(c);

            // We compare advances because width
            // of a char can be 0 (e.g. "Space" char)
            float advance = gl.getGlyphPointMetrics().getAdvance();
            if ( advance != 0){
View Full Code Here

       
        CompositeFont wcf = (CompositeFont)(g.getFont().getPeer());
        int charFontIndex = wcf.getCharFontIndex(str.charAt(0), 0);
        int fontIndex = charFontIndex;

        WindowsFont physFont = (WindowsFont)wcf.fPhysicalFonts[charFontIndex];
       
        long font = physFont.getFontHandle();
        float yPos = 0;    // Y position to draw (y - font.ascent)
        float xPos = 0;    // X position to draw
        int count = 0;

       
View Full Code Here

            gdipDrawNormalChars(g, gv.getFont(),
                    ((CommonGlyphVector)gv).charVector, len, x, y);
            return;
        }

        WindowsFont wf = (WindowsFont)gv.getFont().getPeer();
        long font = wf.getFontHandle();
        AffineTransform fontAT = gv.getFont().getTransform();

        double matrix[] = new double[6];
        double fontMatrix[] = new double[6];
        char chars[] = new char[len];
View Full Code Here

        int size = len;
        double positions[] = new double[size*2];
        char chars[] = new char[size];
        int count = 0;
        WindowsFont physFont = (WindowsFont)wcf.fPhysicalFonts[charFontIndex];
       
        long font = physFont.getFontHandle();

        AffineTransform fontAT = fnt.getTransform();

        double matrix[] = new double[6];
        double fontMatrix[] = new double[6];
View Full Code Here

     */
    @SuppressWarnings("deprecation")
    public void gdipDrawNormalString(Graphics2D g, String str, float x, float y) {
        long graphicsInfo = ((WinGDIPGraphics2D)g).getGraphicsInfo();

        WindowsFont wf = (WindowsFont)(g.getFont().getPeer());
        long font = wf.getFontHandle();
        int len = str.length();
       
        char[] chars = new char[len];
        double positions[] = new double[len*2];
        double matrix[] = new double[6];
        AffineTransform at = new AffineTransform(g.getFont().getTransform());
        at.getMatrix(matrix);

        float xPos = 0;
        float yPos = 0;
      
        int count = 0;
        for (int i=0; i < len; i++){
            char c = str.charAt(i);
            Glyph gl = wf.getGlyph(c);

            // We compare Advances because Width
            // of a char can be 0 (e.g. "Space" char)
            float advance = gl.getGlyphPointMetrics().getAdvance();
            if ( advance != 0){
View Full Code Here

    @SuppressWarnings("deprecation")
    public void gdipDrawNormalChars(Graphics2D g, Font fnt, char str[],
            int len, float x, float y) {
        long graphicsInfo = ((WinGDIPGraphics2D)g).getGraphicsInfo();

        WindowsFont wf = (WindowsFont)(fnt.getPeer());
        long font = wf.getFontHandle();
       
        char[] chars = new char[len];
        double positions[] = new double[len*2];
        double matrix[] = new double[6];
       
        AffineTransform at = new AffineTransform(fnt.getTransform());
        at.getMatrix(matrix);
        at.preConcatenate(AffineTransform.getTranslateInstance(x, y));

        float xPos = 0;
        float yPos = 0;
      
        int count = 0;
        for (int i=0; i < len; i++){
            char c = str[i];
            Glyph gl = wf.getGlyph(c);

            // We compare advances because width
            // of a char can be 0 (e.g. "Space" char)
            float advance = gl.getGlyphPointMetrics().getAdvance();
            if ( advance != 0){
View Full Code Here

       
        CompositeFont wcf = (CompositeFont)(g.getFont().getPeer());
        int charFontIndex = wcf.getCharFontIndex(str.charAt(0), 0);
        int fontIndex = charFontIndex;

        WindowsFont physFont = (WindowsFont)wcf.fPhysicalFonts[charFontIndex];
       
        long font = physFont.getFontHandle();
        float yPos = 0;    // Y position to draw (y - font.ascent)
        float xPos = 0;    // X position to draw
        int count = 0;

       
View Full Code Here

TOP

Related Classes of org.apache.harmony.awt.gl.font.WindowsFont

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.