namespace dcp {
-/** @class Font
+/** @class FontNode
* @brief Helper class for parsing subtitle XML.
*/
class FontNode
FontNode ()
: size (0)
{}
-
- FontNode (cxml::ConstNodePtr node, int tcr);
+
+ FontNode (cxml::ConstNodePtr node, int tcr, std::string font_id_attribute);
FontNode (std::list<boost::shared_ptr<FontNode> > const & font_nodes);
std::string text;
boost::optional<std::string> id;
int size;
+ boost::optional<float> aspect_adjust;
boost::optional<bool> italic;
boost::optional<Colour> colour;
boost::optional<Effect> effect;
boost::optional<Colour> effect_colour;
-
+
std::list<boost::shared_ptr<SubtitleNode> > subtitle_nodes;
std::list<boost::shared_ptr<FontNode> > font_nodes;
std::list<boost::shared_ptr<TextNode> > text_nodes;