Package org.apache.flex.swf.tags

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


    }

    private DefineFontNameTag readFontName() throws MalformedTagException
    {
        final int fontId = bitStream.readUI16();
        final DefineFontNameTag tag = new DefineFontNameTag();
        final ICharacterTag character = getTagById(fontId, tag.getTagType());
        final String fontName = bitStream.readString();
        final String fontCopyright = bitStream.readString();

        tag.setFontTag(character);
        tag.setFontName(fontName);
        tag.setFontCopyright(fontCopyright);

        ((IDefineFontTag)character).setLicense(tag);

        return tag;
    }
View Full Code Here


        // 8 bits - no need to align

        tagBuffer.writeString(tag.getFontName());
        tagBuffer.write(tag.getFontData());

        DefineFontNameTag license = tag.getLicense();
        if (license != null)
            extraTags.add(license);
    }
View Full Code Here

            {
                writeKerningRecord(kerning, tag.isFontFlagsWideCodes());
            }
        }

        DefineFontNameTag license = tag.getLicense();
        if (license != null)
            extraTags.add(license);
    }
View Full Code Here

        final int numGlyphs = tag.getGlyphShapeTable().length;
        int[] shapeSizes = new int[numGlyphs];
        IOutputBitStream shapeBuffer = writeGlyphTableToBuffer(numGlyphs, tag, shapeSizes);
        writeFontOffsetAndGlyphTable(shapeBuffer, shapeSizes, numGlyphs, tag.getTagType(), false);

        DefineFontNameTag license = tag.getLicense();
        if (license != null)
            extraTags.add(license);
    }
View Full Code Here

    }

    private void reportDefineFont(DefineFontTag tag, int recordLength)
    {
        String fontName = null;
        DefineFontNameTag license = tag.getLicense();
        if (license != null)
            fontName = license.getFontName();

        report.addEntry(SizeReport.FONT, tag.getCharacterID(), recordLength,
                fontName);
    }
View Full Code Here

TOP

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

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.