From 1c48a9a4e1e23278a2c3efdd6f8ac4a2baf4e022 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Fri, 21 Sep 2012 20:06:53 +0800 Subject: [PATCH] disable auto hint by default --- pdf2htmlEX.1.in | 2 +- src/ffw.c | 3 --- src/pdf2htmlEX.cc | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/pdf2htmlEX.1.in b/pdf2htmlEX.1.in index 98cff1d..d086cec 100644 --- a/pdf2htmlEX.1.in +++ b/pdf2htmlEX.1.in @@ -94,7 +94,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: 1) +.B --auto-hint <0|1> (Default: 0) If set to 1, hints will be generated for the fonts. This switch is experimental which may break other things. diff --git a/src/ffw.c b/src/ffw.c index 9bcfc26..aed3ebd 100644 --- a/src/ffw.c +++ b/src/ffw.c @@ -310,9 +310,6 @@ void ffw_auto_hint(void) // convert to quadratic if(!(cur_fv->sf->layers[ly_fore].order2)) { - // for now, disable conversion because it breaks Firefox - return; - SFCloseAllInstrs(cur_fv->sf); SFConvertToOrder2(cur_fv->sf); } diff --git a/src/pdf2htmlEX.cc b/src/pdf2htmlEX.cc index 9c507ec..168f7b1 100644 --- a/src/pdf2htmlEX.cc +++ b/src/pdf2htmlEX.cc @@ -74,7 +74,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, 3.0, "setting a value greater than 1 would increase the rendering accuracy") - .add("auto-hint", ¶m.auto_hint, 1, "[Experimental] Whether to generate hints for fonts") + .add("auto-hint", ¶m.auto_hint, 0, "[Experimental] 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")