Go to the documentation of this file.
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::int16_t descent() const
The font descent value.
Definition: DefineFontTag.h:110
std::shared_ptr< const Font::CodeTable > getCodeTable() const
Retrieve the tag's Font::CodeTable.
Definition: DefineFontTag.h:82
bool bold() const
Definition: DefineFontTag.h:90
std::string name
Definition: LocalConnection_as.cpp:149
void log_swferror(StringType msg, Args... args)
Definition: log.h:325
Definition: DefineFontTag.h:156
bool italic() const
Definition: DefineFontTag.h:89
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:31
@ i
Definition: GnashKey.h:155
@ DEFINEFONT2
Definition: SWF.h:78
#define LOG_ONCE(x)
Definition: log.h:49
#define _(String)
Definition: log.h:44
bool shiftJISChars() const
Definition: DefineFontTag.h:87
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
Read and store DefineFont and DefineFont2 tag.
Definition: DefineFontTag.h:51
const std::string & name() const
Definition: DefineFontTag.h:114
std::int16_t leading() const
The font leading value.
Definition: DefineFontTag.h:96
@ m
Definition: GnashKey.h:159
std::vector< GlyphInfo > GlyphInfoRecords
Definition: Font.h:242
bool ansiChars() const
Definition: DefineFontTag.h:86
std::int16_t ascent() const
The font ascent value.
Definition: DefineFontTag.h:103
const Font::GlyphInfoRecords & glyphTable() const
Return the glyphs read from the DefineFont tag.
Definition: DefineFontTag.h:61
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:96
bool hasCodeTable() const
Check for the existence of a Font::CodeTable.
Definition: DefineFontTag.h:70
@ k
Definition: GnashKey.h:157
#define IF_VERBOSE_MALFORMED_SWF(x)
Definition: log.h:404
static void loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &r)
Load a DefineFont tag.
Definition: DefineFontTag.cpp:41
@ r
Definition: GnashKey.h:164
unsigned long tell()
Return our current (byte) position in the input stream.
Definition: SWFStream.cpp:447
code
Definition: GnashKey.h:44
static void loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &r)
Load a DefineFontInfo tag.
Definition: DefineFontTag.cpp:332
@ DEFINEFONTINFO
Definition: SWF.h:45
@ DEFINEFONTINFO2
Definition: SWF.h:92
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
@ DEFINEFONT3
Definition: SWF.h:105
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
#define IF_VERBOSE_PARSE(x)
Definition: log.h:378
void log_parse(StringType msg, Args... args)
Definition: log.h:313
@ f
Definition: GnashKey.h:152
A Font resource.
Definition: Font.h:90
std::uint16_t read_u16()
Read a aligned unsigned 16-bit value from the stream.
Definition: SWFStream.cpp:332
std::uint8_t read_u8()
Read a aligned unsigned 8-bit value from the stream.
Definition: SWFStream.cpp:319
void read_string_with_length(std::string &to)
Reads a sized string into a provided std::string.
Definition: SWFStream.cpp:411
bool subpixelFont() const
Definition: DefineFontTag.h:91
SWF stream wrapper class.
Definition: SWFStream.h:59
SWFRect readRect(SWFStream &in)
Read a bit-packed rectangle from an SWF stream.
Definition: TypesParser.cpp:130
void ensureBytes(unsigned long needed)
Ensure the requested number of bytes are available for an aligned read in the currently opened tag.
Definition: SWFStream.cpp:50
bool unicodeChars() const
Definition: DefineFontTag.h:88
@ SWF
Definition: GnashKey.h:331
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
std::map< std::uint16_t, int > CodeTable
Definition: Font.h:94
@ DEFINEFONT
Definition: SWF.h:42