mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
remove duplicate check for .woff font type
This commit is contained in:
parent
8cad5bed2b
commit
183f182ef7
@ -66,11 +66,10 @@ bool freetype_engine::is_font_file(std::string const& file_name)
|
||||
std::transform(fn.begin(), fn.end(), fn.begin(), ::tolower);
|
||||
return boost::algorithm::ends_with(fn,std::string(".ttf")) ||
|
||||
boost::algorithm::ends_with(fn,std::string(".otf")) ||
|
||||
boost::algorithm::ends_with(fn,std::string(".woff"))||
|
||||
boost::algorithm::ends_with(fn,std::string(".ttc")) ||
|
||||
boost::algorithm::ends_with(fn,std::string(".pfa")) ||
|
||||
boost::algorithm::ends_with(fn,std::string(".pfb")) ||
|
||||
boost::algorithm::ends_with(fn,std::string(".ttc")) ||
|
||||
boost::algorithm::ends_with(fn,std::string(".woff"))||
|
||||
// Plus OSX custom ext
|
||||
boost::algorithm::ends_with(fn,std::string(".dfont"));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user