mirror of
https://github.com/mapnik/mapnik.git
synced 2026-02-01 17:36:36 +00:00
Merge branch 'master' into python-textplacement
This commit is contained in:
commit
8e83f0bd7a
@ -203,26 +203,9 @@ private:
|
||||
template <class T>
|
||||
void copy_text_ptr(T & sym) const
|
||||
{
|
||||
std::string name = to_expression_string(*sym.get_name());
|
||||
sym.set_name( parse_expression(name) );
|
||||
|
||||
// FIXME - orientation doesn't appear to be initialized in constructor?
|
||||
//std::string orientation = to_expression_string(*sym->get_orientation());
|
||||
//sym->set_orientation( parse_expression(orientation) );
|
||||
|
||||
float text_size = sym.get_text_size();
|
||||
position displace = sym.get_displacement();
|
||||
vertical_alignment_e valign = sym.get_vertical_alignment();
|
||||
horizontal_alignment_e halign = sym.get_horizontal_alignment();
|
||||
justify_alignment_e jalign = sym.get_justify_alignment();
|
||||
|
||||
text_placements_ptr placements = text_placements_ptr(boost::make_shared<text_placements_dummy>());
|
||||
sym.set_placement_options( placements );
|
||||
sym.set_text_size(text_size);
|
||||
sym.set_displacement(displace);
|
||||
sym.set_vertical_alignment(valign);
|
||||
sym.set_horizontal_alignment(halign);
|
||||
sym.set_justify_alignment(jalign);
|
||||
#ifdef MAPNIK_DEBUG
|
||||
std::cerr << "Warning: Deep copying TextSymbolizers is broken!\n";
|
||||
#endif
|
||||
}
|
||||
|
||||
template <class T>
|
||||
|
||||
@ -36,8 +36,7 @@
|
||||
// stl
|
||||
#include <string>
|
||||
|
||||
// Warning disabled for the moment
|
||||
#if (0 && __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
|
||||
#if (1 && __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
|
||||
#define func_deprecated __attribute__ ((deprecated))
|
||||
#else
|
||||
#define func_deprecated
|
||||
@ -114,7 +113,7 @@ struct MAPNIK_DECL text_symbolizer : public symbolizer_base
|
||||
void set_minimum_padding(double distance);
|
||||
double get_minimum_padding() const func_deprecated;
|
||||
void set_minimum_path_length(double size);
|
||||
double get_minimum_path_length() const func_deprecated;
|
||||
double get_minimum_path_length() const;
|
||||
void set_allow_overlap(bool overlap);
|
||||
bool get_allow_overlap() const func_deprecated;
|
||||
void set_text_opacity(double opacity);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user