remove duplicate check for .woff font type
This commit is contained in:
parent
8cad5bed2b
commit
183f182ef7
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue