Go to the documentation of this file.
27 #ifndef GNASH_SWF_DEFINEFONTNAMETAG_H
28 #define GNASH_SWF_DEFINEFONTNAMETAG_H
48 std::uint16_t fontID = in.
read_u16();
50 Font*
f =
m.get_font(fontID);
55 "font with id %d"), fontID);
64 f->addFontNameInfo(fontName);
void log_swferror(StringType msg, Args... args)
Definition: log.h:325
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:31
#define _(String)
Definition: log.h:44
void read_string(std::string &to)
Reads a null-terminated string from the given file and assigns it to the given std::string,...
Definition: SWFStream.cpp:395
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
std::string displayName
Definition: Font.h:222
@ m
Definition: GnashKey.h:159
@ DEFINEFONTNAME
Definition: SWF.h:114
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:96
#define IF_VERBOSE_MALFORMED_SWF(x)
Definition: log.h:404
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
@ 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::string copyrightName
Definition: Font.h:223
A pair of strings describing the font.
Definition: Font.h:221
SWF stream wrapper class.
Definition: SWFStream.h:59
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
@ SWF
Definition: GnashKey.h:331