merge with master
This commit is contained in:
commit
69cdca27a2
2 changed files with 1 additions and 14 deletions
|
@ -253,7 +253,7 @@ face_ptr freetype_engine::create_face(std::string const& family_name)
|
|||
= memory_fonts_.insert(std::make_pair(itr->second.second, buffer));
|
||||
|
||||
FT_Error error = FT_New_Memory_Face (library_,
|
||||
reinterpret_cast<FT_Byte const*>(result.first->second.c_str()),
|
||||
reinterpret_cast<FT_Byte const*>(result.first->second.c_str()),
|
||||
static_cast<FT_Long>(buffer.size()),
|
||||
itr->second.first,
|
||||
&face);
|
||||
|
|
|
@ -56,19 +56,6 @@ int main(int argc, char** argv)
|
|||
BOOST_TEST( true );
|
||||
}
|
||||
|
||||
should_throw = "./tests/cpp_tests/data/blank.webp";
|
||||
BOOST_TEST( mapnik::util::exists( should_throw ) );
|
||||
type = mapnik::type_from_filename(should_throw);
|
||||
BOOST_TEST( type );
|
||||
try
|
||||
{
|
||||
std::unique_ptr<mapnik::image_reader> reader(mapnik::get_image_reader(should_throw,*type));
|
||||
BOOST_TEST( false );
|
||||
}
|
||||
catch (std::exception const&)
|
||||
{
|
||||
BOOST_TEST( true );
|
||||
}
|
||||
should_throw = "./tests/data/images/xcode-CgBI.png";
|
||||
BOOST_TEST( mapnik::util::exists( should_throw ) );
|
||||
type = mapnik::type_from_filename(should_throw);
|
||||
|
|
Loading…
Reference in a new issue