Correct fontenc for secondary languages

This commit is contained in:
Juergen Spitzmueller 2018-04-23 12:33:11 +02:00
parent 1af0832f75
commit 998f097686

View File

@ -906,7 +906,8 @@ void LaTeXFeatures::getFontEncodings(vector<string> & encs, bool const onlylangs
for (auto const & lang : UsedLanguages_) for (auto const & lang : UsedLanguages_)
if (!lang->fontencs().empty()) { if (!lang->fontencs().empty()) {
vector<string> extraencs = lang->fontencs(); vector<string> extraencs =
getVectorFromString(lang->fontenc(buffer().masterParams()));
for (auto const & extra : extraencs) { for (auto const & extra : extraencs) {
if (extra != "none" && find(encs.begin(), encs.end(), extra) == encs.end()) if (extra != "none" && find(encs.begin(), encs.end(), extra) == encs.end())
encs.insert(encs.begin(), extra); encs.insert(encs.begin(), extra);