diff options
Diffstat (limited to 'src/text_node.cc')
| -rw-r--r-- | src/text_node.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/text_node.cc b/src/text_node.cc index aa318ce7..7618c460 100644 --- a/src/text_node.cc +++ b/src/text_node.cc @@ -42,6 +42,7 @@ TextNode::TextNode (boost::shared_ptr<const cxml::Node> node, int tcr, string fo , h_align (HALIGN_CENTER) , v_position (0) , v_align (VALIGN_CENTER) + , direction (DIRECTION_LTR) { text = node->content (); @@ -77,6 +78,11 @@ TextNode::TextNode (boost::shared_ptr<const cxml::Node> node, int tcr, string fo v_align = string_to_valign (va.get ()); } + optional<string> d = node->optional_string_attribute ("Direction"); + if (d) { + direction = string_to_direction (d.get ()); + } + list<cxml::NodePtr> f = node->node_children ("Font"); BOOST_FOREACH (cxml::NodePtr& i, f) { font_nodes.push_back (shared_ptr<FontNode> (new FontNode (i, tcr, font_id_attribute))); |
