Gnash
0.8.11dev
|
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. More... | |
bool | hasCodeTable () const |
Check for the existence of a Font::CodeTable. More... | |
std::shared_ptr< const Font::CodeTable > | getCodeTable () 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... | |
Read and store DefineFont and DefineFont2 tag.
|
inline |
|
inline |
The font ascent value.
This is documented to be int16_t, but may be uint16_t like advance.
|
inline |
|
inline |
The font descent value.
This is documented to be int16_t, but may be uint16_t like advance.
|
inline |
Retrieve the tag's Font::CodeTable.
This DefineFontTag always retains ownership, and the CodeTable may not be altered.
|
inline |
Return the glyphs read from the DefineFont tag.
|
inline |
Check for the existence of a Font::CodeTable.
|
inline |
|
inline |
The font leading value.
This is documented to be int16_t, but may be uint16_t like advance.
|
static |
Load a DefineFont tag.
A corresponding Font is created and added to the movie_definition.
References gnash::movie_definition::add_font(), gnash::SWF::DEFINEFONT, gnash::SWF::DEFINEFONT2, gnash::SWF::DEFINEFONT3, gnash::SWFStream::ensureBytes(), gnash::key::f, and gnash::SWFStream::read_u16().
Referenced by gnash::SWF::addDefaultLoaders().
|
inline |
|
static |
Read Font::CodeTable, which maps glyph indices to DisplayObject codes.
References _, gnash::SWFStream::ensureBytes(), gnash::key::i, IF_VERBOSE_PARSE, gnash::log_parse(), gnash::SWFStream::read_u16(), gnash::SWFStream::read_u8(), and gnash::SWFStream::tell().
Referenced by gnash::SWF::DefineFontInfoTag::loader().
|
inline |
|
inline |
|
inline |