|
bool res = fontMan->checkFontLangCompat(fontFace_u8, langCode_u8); |
There is an error somewhere in this method chain: some EPUBs contain a fully specified language tag, like "pt-BR", which is passed here, but the font catalog stores bare language names, so it is not found. The country, script, and variant parts should be split from the language code somewhere.
coolreader/cr3qt/src/cr3widget.cpp
Line 1090 in d002621
There is an error somewhere in this method chain: some EPUBs contain a fully specified language tag, like "pt-BR", which is passed here, but the font catalog stores bare language names, so it is not found. The country, script, and variant parts should be split from the language code somewhere.