mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 11:09:06 +08:00
text2image: Add linefeed to error message
This changes the error message for a missing font from Could not find font named Times New Roman.Please correct --font arg. (missing space after first sentence) to Could not find font named Times New Roman. Please correct --font arg. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
a1f0f36ddc
commit
3420acabe5
@ -444,7 +444,7 @@ int main(int argc, char** argv) {
|
||||
if (!FLAGS_find_fonts && !FontUtils::IsAvailableFont(FLAGS_font.c_str())) {
|
||||
string pango_name;
|
||||
if (!FontUtils::IsAvailableFont(FLAGS_font.c_str(), &pango_name)) {
|
||||
tprintf("Could not find font named %s.", FLAGS_font.c_str());
|
||||
tprintf("Could not find font named %s.\n", FLAGS_font.c_str());
|
||||
if (!pango_name.empty()) {
|
||||
tprintf("Pango suggested font %s.\n", pango_name.c_str());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user