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:
Martín Lucas Golini
2023-09-18 00:34:06 -03:00
parent 03da66dbe4
commit b3b5566f1c
30 changed files with 192 additions and 117 deletions

View File

@@ -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 {};
}