fix compile error: PrintFontsTable() is for legacy builds only

# Conflicts:
#	googletest
This commit is contained in:
Ger Hobbelt 2021-04-29 23:23:57 +02:00
parent 723eb135c5
commit bd8adff829
2 changed files with 8 additions and 0 deletions

View File

@ -150,11 +150,15 @@ public:
*/
const char *GetStringVariable(const char *name) const;
#ifndef DISABLED_LEGACY_ENGINE
/**
* Print Tesseract fonts table to the given file.
*/
void PrintFontsTable(FILE* fp) const;
#endif
/**
* Print Tesseract parameters to the given file.
*/

View File

@ -330,6 +330,8 @@ bool TessBaseAPI::GetVariableAsString(const char *name, std::string *val) const
return ParamUtils::GetParamAsString(name, tesseract_->params(), val);
}
#ifndef DISABLED_LEGACY_ENGINE
/** Print Tesseract fonts table to the given file. */
void TessBaseAPI::PrintFontsTable(FILE *fp) const {
const int fontinfo_size = tesseract_->get_fontinfo_table().size();
@ -346,6 +348,8 @@ void TessBaseAPI::PrintFontsTable(FILE *fp) const {
}
}
#endif
/** Print Tesseract parameters to the given file. */
void TessBaseAPI::PrintVariables(FILE *fp) const {
ParamUtils::PrintParams(fp, tesseract_->params());