Skip to content

Commit

Permalink
set fonts_dir to system default font location. Fixes #409
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Sep 1, 2016
1 parent 916897d commit 61032d9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions training/pango_font_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@
#include "pango/pangocairo.h"
#include "pango/pangofc-font.h"

STRING_PARAM_FLAG(fonts_dir, "/auto/ocr-data/tesstraining/fonts",
"Overrides system default font location");
STRING_PARAM_FLAG(fontconfig_tmpdir, "/tmp",
"Overrides fontconfig default temporary dir");
BOOL_PARAM_FLAG(fontconfig_refresh_cache, false,
Expand All @@ -77,8 +75,14 @@ BOOL_PARAM_FLAG(fontconfig_refresh_config_file, true,
BOOL_PARAM_FLAG(use_only_legacy_fonts, false,
"Overrides --fonts_dir and sets the known universe of fonts to"
"the list in legacy_fonts.h");

STRING_PARAM_FLAG(fonts_dir, "/auto/ocr-data/tesstraining/fonts",
"Overrides system default font location");
#else
using std::pair;
STRING_PARAM_FLAG(fonts_dir, "",
"If empty it use system default. Otherwise it overrides"
" system default font location");
#endif

namespace tesseract {
Expand Down

0 comments on commit 61032d9

Please sign in to comment.