Public Member Functions | Static Public Member Functions

gnash::SWF::DefineFontTag Class Reference

Read and store DefineFont and DefineFont2 tag. More...

#include <DefineFontTag.h>

List of all members.

Public Member Functions

const Font::GlyphInfoRecordsglyphTable () const
 Return the glyphs read from the DefineFont tag.
bool hasCodeTable () const
 Check for the existence of a Font::CodeTable.
boost::shared_ptr< const
Font::CodeTable
getCodeTable () const
 Retrieve the tag's Font::CodeTable.
bool ansiChars () const
bool shiftJISChars () const
bool unicodeChars () const
bool italic () const
bool bold () const
bool subpixelFont () const
boost::int16_t leading () const
 The font leading value.
boost::int16_t ascent () const
 The font ascent value.
boost::int16_t descent () const
 The font descent value.
const std::string & name () const

Static Public Member Functions

static void loader (SWFStream &in, TagType tag, movie_definition &m, const RunResources &r)
 Load a DefineFont tag.
static void readCodeTable (SWFStream &in, Font::CodeTable &table, bool wideCodes, size_t glyphCount)
 Read Font::CodeTable, which maps glyph indices to DisplayObject codes.

Detailed Description

Read and store DefineFont and DefineFont2 tag.


Member Function Documentation

bool gnash::SWF::DefineFontTag::ansiChars (  )  const [inline]
boost::int16_t gnash::SWF::DefineFontTag::ascent (  )  const [inline]

The font ascent value.

This is documented to be int16_t, but may be uint16_t like advance.

bool gnash::SWF::DefineFontTag::bold (  )  const [inline]
boost::int16_t gnash::SWF::DefineFontTag::descent (  )  const [inline]

The font descent value.

This is documented to be int16_t, but may be uint16_t like advance.

boost::shared_ptr<const Font::CodeTable> gnash::SWF::DefineFontTag::getCodeTable (  )  const [inline]

Retrieve the tag's Font::CodeTable.

This DefineFontTag always retains ownership, and the CodeTable may not be altered.

Returns:
shared ownership of the tag's Font::CodeTable. This may be NULL, which can be checked first with hasCodeTable().
const Font::GlyphInfoRecords& gnash::SWF::DefineFontTag::glyphTable (  )  const [inline]

Return the glyphs read from the DefineFont tag.

bool gnash::SWF::DefineFontTag::hasCodeTable (  )  const [inline]

Check for the existence of a Font::CodeTable.

Returns:
True if the tag has a Font::CodeTable. This can only be true for a DefineFont2 tag.
bool gnash::SWF::DefineFontTag::italic (  )  const [inline]
boost::int16_t gnash::SWF::DefineFontTag::leading (  )  const [inline]

The font leading value.

This is documented to be int16_t, but may be uint16_t like advance.

void gnash::SWF::DefineFontTag::loader ( SWFStream in,
TagType  tag,
movie_definition m,
const RunResources r 
) [static]
const std::string& gnash::SWF::DefineFontTag::name (  )  const [inline]
void gnash::SWF::DefineFontTag::readCodeTable ( SWFStream in,
Font::CodeTable table,
bool  wideCodes,
size_t  glyphCount 
) [static]
bool gnash::SWF::DefineFontTag::shiftJISChars (  )  const [inline]
bool gnash::SWF::DefineFontTag::subpixelFont (  )  const [inline]
bool gnash::SWF::DefineFontTag::unicodeChars (  )  const [inline]

The documentation for this class was generated from the following files: