From c28582a23c538c58f4464cf8f9009fd02326b6d5 Mon Sep 17 00:00:00 2001 From: Hermann Kraus Date: Wed, 8 Feb 2012 20:39:09 +0100 Subject: [PATCH] Add FormatingFormatNode properties. --- bindings/python/mapnik_python.cpp | 11 ++++++++--- bindings/python/mapnik_text_placement.cpp | 11 +++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/bindings/python/mapnik_python.cpp b/bindings/python/mapnik_python.cpp index 588279815..4436d2e91 100644 --- a/bindings/python/mapnik_python.cpp +++ b/bindings/python/mapnik_python.cpp @@ -636,9 +636,14 @@ BOOST_PYTHON_MODULE(_mapnik) def("has_cairo", &has_cairo, "Get cairo library status"); def("has_pycairo", &has_pycairo, "Get pycairo module status"); - python_optional (); - python_optional > (); - python_optional (); + python_optional(); + python_optional >(); + python_optional(); + python_optional(); + python_optional(); + python_optional(); + python_optional(); + python_optional(); register_ptr_to_python(); register_ptr_to_python(); to_python_converter(); diff --git a/bindings/python/mapnik_text_placement.cpp b/bindings/python/mapnik_text_placement.cpp index 4fb2c510c..31a232df7 100644 --- a/bindings/python/mapnik_text_placement.cpp +++ b/bindings/python/mapnik_text_placement.cpp @@ -399,6 +399,17 @@ void export_text_placement() .add_property("child", &formating::format_node::get_child, &formating::format_node::set_child) + .def_readwrite("face_name", &formating::format_node::face_name) + .def_readwrite("text_size", &formating::format_node::text_size) + .def_readwrite("character_spacing", &formating::format_node::character_spacing) + .def_readwrite("line_spacing", &formating::format_node::line_spacing) + .def_readwrite("text_opacity", &formating::format_node::text_opacity) + .def_readwrite("wrap_char", &formating::format_node::wrap_char) + .def_readwrite("wrap_before", &formating::format_node::wrap_before) + .def_readwrite("text_transform", &formating::format_node::text_transform) + .def_readwrite("fill", &formating::format_node::fill) + .def_readwrite("halo_fill", &formating::format_node::halo_fill) + .def_readwrite("halo_radius", &formating::format_node::halo_radius) ; register_ptr_to_python >(); }