Package org.apache.flex.swf.tags

Examples of org.apache.flex.swf.tags.DefineFont3Tag


        final int fontId = bitStream.readUI16();
        final DefineFontAlignZonesTag tag = new DefineFontAlignZonesTag();
        final ICharacterTag character = getTagById(fontId, tag.getTagType());
        if (character instanceof DefineFont3Tag)
        {
            final DefineFont3Tag fontTag = (DefineFont3Tag)character;
            bitStream.byteAlign();
            final int csmTableHint = bitStream.readUB(2);
            bitStream.byteAlign(); // skip reserved

            final ZoneRecord[] zoneTable = new ZoneRecord[fontTag.getNumGlyphs()];
            for (int i = 0; i < fontTag.getNumGlyphs(); i++)
            {
                zoneTable[i] = readZoneRecord();
            }

            tag.setFontTag(fontTag);
            tag.setCsmTableHint(csmTableHint);
            tag.setZoneTable(zoneTable);

            fontTag.setZones(tag);

            return tag;
        }
        else
        {
View Full Code Here


        return zoneData;
    }

    private DefineFont3Tag readDefineFont3() throws IOException, MalformedTagException
    {
        final DefineFont3Tag tag = new DefineFont3Tag();
        readDefineFont2And3(tag);
        return tag;
    }
View Full Code Here

TOP

Related Classes of org.apache.flex.swf.tags.DefineFont3Tag

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.