mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-28 05:13:49 +08:00
fix compile error: PrintFontsTable() is for legacy builds only
# Conflicts: # googletest
This commit is contained in:
parent
723eb135c5
commit
bd8adff829
@ -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.
|
||||
*/
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user