Gnash
0.8.10
|
Read and store DefineFont and DefineFont2 tag. More...
#include <DefineFontTag.h>
Public Member Functions | |
const Font::GlyphInfoRecords & | glyphTable () 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. |
Read and store DefineFont and DefineFont2 tag.
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.
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.
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] |
Load a DefineFont tag.
A corresponding Font is created and added to the movie_definition.
References assert, gnash::SWF::DEFINEFONT, gnash::SWF::DEFINEFONT2, gnash::SWF::DEFINEFONT3, gnash::SWFStream::ensureBytes(), gnash::SWFStream::read_u16(), gnash::key::f, and gnash::movie_definition::add_font().
Referenced by gnash::SWF::addDefaultLoaders().
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] |
Read Font::CodeTable, which maps glyph indices to DisplayObject codes.
References IF_VERBOSE_PARSE, _, gnash::SWFStream::tell(), assert, gnash::SWFStream::ensureBytes(), gnash::key::i, gnash::SWFStream::read_u16(), and gnash::SWFStream::read_u8().
Referenced by gnash::SWF::DefineFontInfoTag::loader().
bool gnash::SWF::DefineFontTag::shiftJISChars | ( | ) | const [inline] |
bool gnash::SWF::DefineFontTag::subpixelFont | ( | ) | const [inline] |
bool gnash::SWF::DefineFontTag::unicodeChars | ( | ) | const [inline] |