Skip to content

Commit 19c26f0

Browse files
committed
Removed warning about ligatures and fixed root font dir
1 parent 4412269 commit 19c26f0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

training/tesstrain_utils.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ FONTS=(
2323
if [ "$(uname)" == "Darwin" ];then
2424
FONTS_DIR="/Library/Fonts/"
2525
else
26-
FONTS_DIR="/usr/share/fonts/truetype/"
26+
FONTS_DIR="/usr/share/fonts/"
2727
fi
2828
OUTPUT_DIR="/tmp/tesstrain/tessdata"
2929
OVERWRITE=0

training/text2image.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ void ExtractFontProperties(const string &utf8_text,
250250
// API.
251251
// Safeguard against these cases here by just skipping the bigram.
252252
if (IsWhitespaceBox(boxes[b+1])) {
253-
tprintf("WARNING: Found unexpected ligature: %s\n", ch0.c_str());
254253
continue;
255254
}
256255
int xgap = (boxes[b+1]->box()->x -

0 commit comments

Comments
 (0)