Examples of GlyphEntry


Examples of flash.swf.types.GlyphEntry

            advance = (int)Math.rint(metrics.getAdvance()); //Do not scale here, DefineText needs values unscaled

            java.awt.Shape scaledShape = scaleTransform.createTransformedShape(glyphOutline);
            swfShape = createGlyphShape(scaledShape);

            GlyphEntry ge = new GlyphEntry();
            ge = new GlyphEntry(); //Note: we will set the index on building DefineFont2 tag
            ge.advance = (int)(advance * emScale * (useTwips ? SwfConstants.TWIPS_PER_PIXEL : 1));
            ge.shape = swfShape;
          //Glyph bounds are not used by the Flash Player so no need to calculate
          //Rectangle2D bs = scaledShape.getBounds2D();
          //bounds = new Rect((int)StrictMath.rint(bs.getMinX() * (useTwips ? SwfConstants.TWIPS_PER_PIXEL : 1)),
View Full Code Here

Examples of org.apache.flex.swf.types.GlyphEntry

        return textRecord;
    }

    private GlyphEntry readGlyphEntry(int glyphBits, int advanceBits)
    {
        final GlyphEntry entry = new GlyphEntry();
        entry.setGlyphIndex(bitStream.readUB(glyphBits));
        entry.setGlyphAdvance(bitStream.readSB(advanceBits));
        return entry;
    }
View Full Code Here

Examples of org.apache.flex.swf.types.GlyphEntry

    {
        indent();
        GlyphEntry[] entries = tr.getGlyphEntries();
        for (int i = 0; i < entries.length; i++)
        {
            GlyphEntry ge = entries[i];
            out.print(ge.getGlyphIndex());
            if (ge.getGlyphAdvance() >= 0)
                out.print('+');
            out.print(ge.getGlyphAdvance());
            out.print(' ');
            if ((i + 1) % 10 == 0)
            {
                out.println();
                indent();
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.