From 36a340ecf9edb5a2e8860e5bb6513e7ffafabbbd Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Thu, 29 Nov 2012 21:38:53 +0800 Subject: [PATCH] auto-hint is now default --- pdf2htmlEX.1.in | 2 +- src/pdf2htmlEX.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pdf2htmlEX.1.in b/pdf2htmlEX.1.in index 50a82dc..6ccb168 100644 --- a/pdf2htmlEX.1.in +++ b/pdf2htmlEX.1.in @@ -98,7 +98,7 @@ Specify a ratio greater than 1 would resolve this issue, however it might freeze For some versions of Firefox, however, there will be a problem when the font size is too large, in which case a smaller value should be specified here. .TP -.B --auto-hint <0|1> (Default: 0) +.B --auto-hint <0|1> (Default: 1) If set to 1, hints will be generated for the fonts using fontforge. This may be preceded by --external-hint-tool. diff --git a/src/pdf2htmlEX.cc b/src/pdf2htmlEX.cc index df6ae7d..720e541 100644 --- a/src/pdf2htmlEX.cc +++ b/src/pdf2htmlEX.cc @@ -79,7 +79,7 @@ void parse_options (int argc, char **argv) .add("veps", ¶m.v_eps, 1.0, "max tolerated vertical offset (in pixels)") .add("space-threshold", ¶m.space_threshold, (1.0/8), "distance no thiner than (threshold * em) will be considered as a space character") .add("font-size-multiplier", ¶m.font_size_multiplier, 4.0, "setting a value greater than 1 would increase the rendering accuracy") - .add("auto-hint", ¶m.auto_hint, 0, "Whether to generate hints for fonts") + .add("auto-hint", ¶m.auto_hint, 1, "Whether to generate hints for fonts") .add("tounicode", ¶m.tounicode, 0, "Specify how to deal with ToUnicode map, 0 for auto, 1 for forced, -1 for disabled") .add("space-as-offset", ¶m.space_as_offset, 0, "treat space characters as offsets") .add("stretch-narrow-glyph", ¶m.stretch_narrow_glyph, 0, "stretch narrow glyphs instead of padding space")