mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-02 03:26:29 +03:00
Try to load font family from @font-face (not tested yet).
Added NotoSans font family (Bold, Italic and BoldItalic). Features Health will only check against language names (and ignore extensions).
This commit is contained in:
@@ -311,24 +311,13 @@ const std::vector<FormatterPlugin::Formatter>& FormatterPlugin::getFormatters()
|
||||
}
|
||||
|
||||
FormatterPlugin::Formatter
|
||||
FormatterPlugin::getFormatterForLang( const std::string& lang,
|
||||
const std::vector<std::string>& extensions ) {
|
||||
FormatterPlugin::getFormatterForLang( const std::string& lang ) {
|
||||
for ( const auto& formatter : mFormatters ) {
|
||||
for ( const auto& clang : formatter.languages ) {
|
||||
if ( clang == lang ) {
|
||||
return formatter;
|
||||
}
|
||||
}
|
||||
|
||||
if ( !formatter.files.empty() ) {
|
||||
for ( const auto& file : formatter.files ) {
|
||||
for ( const auto& ext : extensions ) {
|
||||
if ( ext == file ) {
|
||||
return formatter;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user