Gnash  0.8.11dev
Public Member Functions | Static Public Member Functions | List of all members
gnash::SWF::DefineFontTag Class Reference

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

#include <DefineFontTag.h>

Public Member Functions

const Font::GlyphInfoRecordsglyphTable () const
 Return the glyphs read from the DefineFont tag. More...
 
bool hasCodeTable () const
 Check for the existence of a Font::CodeTable. More...
 
std::shared_ptr< const Font::CodeTablegetCodeTable () const
 Retrieve the tag's Font::CodeTable. More...
 
bool ansiChars () const
 
bool shiftJISChars () const
 
bool unicodeChars () const
 
bool italic () const
 
bool bold () const
 
bool subpixelFont () const
 
std::int16_t leading () const
 The font leading value. More...
 
std::int16_t ascent () const
 The font ascent value. More...
 
std::int16_t descent () const
 The font descent value. More...
 
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. More...
 
static void readCodeTable (SWFStream &in, Font::CodeTable &table, bool wideCodes, size_t glyphCount)
 Read Font::CodeTable, which maps glyph indices to DisplayObject codes. More...
 

Detailed Description

Read and store DefineFont and DefineFont2 tag.

Member Function Documentation

◆ ansiChars()

bool gnash::SWF::DefineFontTag::ansiChars ( ) const
inline

◆ ascent()

std::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.

◆ bold()

bool gnash::SWF::DefineFontTag::bold ( ) const
inline

◆ descent()

std::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.

◆ getCodeTable()

std::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().

◆ glyphTable()

const Font::GlyphInfoRecords& gnash::SWF::DefineFontTag::glyphTable ( ) const
inline

Return the glyphs read from the DefineFont tag.

◆ hasCodeTable()

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.

◆ italic()

bool gnash::SWF::DefineFontTag::italic ( ) const
inline

◆ leading()

std::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.

◆ loader()

void gnash::SWF::DefineFontTag::loader ( SWFStream in,
TagType  tag,
movie_definition m,
const RunResources r 
)
static

◆ name()

const std::string& gnash::SWF::DefineFontTag::name ( ) const
inline

◆ readCodeTable()

void gnash::SWF::DefineFontTag::readCodeTable ( SWFStream in,
Font::CodeTable table,
bool  wideCodes,
size_t  glyphCount 
)
static

◆ shiftJISChars()

bool gnash::SWF::DefineFontTag::shiftJISChars ( ) const
inline

◆ subpixelFont()

bool gnash::SWF::DefineFontTag::subpixelFont ( ) const
inline

◆ unicodeChars()

bool gnash::SWF::DefineFontTag::unicodeChars ( ) const
inline

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