warn if fontset not found and load_map is not in strict mode - closes #1791

This commit is contained in:
Dane Springmeyer 2014-10-03 17:43:44 -07:00
parent ebf7a61135
commit 2cf3990e0d

View file

@ -495,6 +495,13 @@ void map_parser::parse_fontset(Map & map, xml_node const& node)
{
success = true;
}
else
{
// https://github.com/mapnik/mapnik/issues/1791
MAPNIK_LOG_ERROR(fontset) << "warning: unable to find face-name '"
<< n.get_attr<std::string>("face-name","")
<< "' in FontSet '" << fontset.get_name() << "'";
}
}
}