30 #ifndef GNASH_SWF_DEFINEFONTTAG_H 31 #define GNASH_SWF_DEFINEFONTTAG_H 42 class movie_definition;
71 return _codeTable.get();
89 bool italic()
const {
return _italic; }
90 bool bold()
const {
return _bold; }
114 const std::string&
name()
const {
return _name; }
118 bool wideCodes,
size_t glyphCount);
144 std::int16_t _ascent;
145 std::int16_t _descent;
146 std::int16_t _leading;
148 typedef std::map<kerning_pair, std::int16_t> KerningTable;
149 KerningTable _kerningPairs;
151 std::shared_ptr<const Font::CodeTable> _codeTable;
std::shared_ptr< const Font::CodeTable > getCodeTable() const
Retrieve the tag's Font::CodeTable.
Definition: DefineFontTag.h:82
bool subpixelFont() const
Definition: DefineFontTag.h:91
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:95
bool shiftJISChars() const
Definition: DefineFontTag.h:87
bool unicodeChars() const
Definition: DefineFontTag.h:88
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:30
std::int16_t descent() const
The font descent value.
Definition: DefineFontTag.h:110
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
std::int16_t ascent() const
The font ascent value.
Definition: DefineFontTag.h:103
static void readCodeTable(SWFStream &in, Font::CodeTable &table, bool wideCodes, size_t glyphCount)
Read Font::CodeTable, which maps glyph indices to DisplayObject codes.
Definition: DefineFontTag.cpp:56
Definition: GnashKey.h:164
const std::string & name() const
Definition: DefineFontTag.h:114
bool bold() const
Definition: DefineFontTag.h:90
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:53
std::int16_t leading() const
The font leading value.
Definition: DefineFontTag.h:96
Read and store DefineFont and DefineFont2 tag.
Definition: DefineFontTag.h:50
bool italic() const
Definition: DefineFontTag.h:89
const Font::GlyphInfoRecords & glyphTable() const
Return the glyphs read from the DefineFont tag.
Definition: DefineFontTag.h:61
bool hasCodeTable() const
Check for the existence of a Font::CodeTable.
Definition: DefineFontTag.h:70
std::vector< GlyphInfo > GlyphInfoRecords
Definition: Font.h:242
bool ansiChars() const
Definition: DefineFontTag.h:86
static void loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &r)
Load a DefineFont tag.
Definition: DefineFontTag.cpp:41
std::map< std::uint16_t, int > CodeTable
Definition: Font.h:94
Definition: GnashKey.h:159
Definition: DefineFontTag.h:155
Definition: GnashKey.h:331
SWF stream wrapper class.
Definition: SWFStream.h:58