Package flash.swf.types

Examples of flash.swf.types.GlyphEntry


    private void printGlyphEntries(TextRecord tr)
    {
      indent();
      for (int i = 0; i < tr.entries.length; i++)
      {
        GlyphEntry ge = tr.entries[i];
        out.print(ge.getIndex());
        if (ge.advance >= 0)
          out.print('+');
        out.print(ge.advance);
        out.print(' ');
        if ((i + 1) % 10 == 0)
View Full Code Here


        GlyphEntry[] e = new GlyphEntry[count];

        r.syncBits();
        for (int i = 0; i < count; i++)
        {
            GlyphEntry ge = new GlyphEntry();

            ge.setIndex( r.readUBits(glyphBits) );
            ge.advance = r.readSBits(advanceBits);

            e[i] = ge;
        }
View Full Code Here

                if (codepoints != null)
                {
                    for (char i = 0; i < codepoints.length; i++)
                    {
                        char c = codepoints[i];
                        GlyphEntry ge = cachedFontFace.getGlyphEntry(c);
                        if (ge == null)
                        {
                            ge = DefineFont3Face.createGlyphEntryFromDefineFont(c, i, tag);
                            cachedFontFace.glyphCache.put(c, ge);
                        }
View Full Code Here

        {
            TextRecord tr = tag.records.get(i);

            for (int j = 0; j < tr.entries.length; j++)
            {
                GlyphEntry entry = tr.entries[j];

                while (entry.getIndex() > (1<<glyphBits))
                    glyphBits++;
                while (Math.abs(entry.advance) > (1<<advanceBits))
                    advanceBits++;
            }
        }
View Full Code Here

        {
            TextRecord tr = tag.records.get(i);

            for (int j = 0; j < tr.entries.length; j++)
            {
                GlyphEntry entry = tr.entries[j];

                while (entry.getIndex() > (1<<glyphBits))
                    glyphBits++;
                while (Math.abs(entry.advance) > (1<<advanceBits))
                    advanceBits++;
            }
        }
View Full Code Here

        }

        // If flashType enabled we must have z, Z, l, L
        if (flashType)
        {
            GlyphEntry adfGE = defaultFace.getGlyphEntry('z');
            if (adfGE == null)
                flashType = false;

            adfGE = defaultFace.getGlyphEntry('Z');
            if (adfGE == null)
View Full Code Here

        int i = 0;

      // long flashTypeTime = 0;
        while (it.hasNext() && i < count)
        {
            GlyphEntry ge = (GlyphEntry)((Map.Entry)it.next()).getValue();

            if (flashType && tag instanceof DefineFont3)
            {
                ((DefineFont3)tag).zones.zoneTable[i] = ge.zoneRecord;
            }

            // Note: offsets to shape table entries calculated on encoding
            tag.glyphShapeTable[i] = ge.shape;

            // IMPORTANT! Update GlyphEntry Index
            ge.setIndex(i);

            // DEFINEFONT2/3 specific properties
            if (tag.code != Tag.stagDefineFont)
            {
                tag.codeTable[i] = ge.character; // unsigned code point
View Full Code Here

        int remaining = count;

        for (int i = fromChar; remaining > 0 && i < Character.MAX_VALUE; i++)
        {
            char c = (char)i;
            GlyphEntry ge = addChar(face, c);
            if (ge != null)
            {
              remaining--;
            }
        }
View Full Code Here

     *
     * @param c
     */
    public GlyphEntry addChar(FontFace face, char c)
    {
        GlyphEntry ge = (GlyphEntry)glyphEntryMap.get(c);

        if (ge == null)
        {
            ge = face.getGlyphEntry(c);

View Full Code Here

    private void printGlyphEntries(TextRecord tr)
    {
      indent();
      for (int i = 0; i < tr.entries.length; i++)
      {
        GlyphEntry ge = tr.entries[i];
        out.print(ge.getIndex());
        if (ge.advance >= 0)
          out.print('+');
        out.print(ge.advance);
        out.print(' ');
        if ((i + 1) % 10 == 0)
View Full Code Here

TOP

Related Classes of flash.swf.types.GlyphEntry

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.