From b8dff4ea0def7a57c73dabb8e1a930916c53f799 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Mon, 24 Sep 2012 02:28:53 +0800 Subject: [PATCH] hinting --- ChangeLog | 5 ++--- pdf2htmlEX.1.in | 2 +- src/pdf2htmlEX.cc | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index d686678..546ae39 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,10 +2,9 @@ Latest v0.4 * external hint tool * (should) do not freeze Firefox -* [Experimental] --auto-hint, good for Chrome +* --auto-hint, good for Chrome * many fixes for IE -(Why no fix for Opera? Because everything has been fine) -* [Experimental] adjust widths of fonts according to PDF +* adjust widths of fonts according to PDF v0.3 diff --git a/pdf2htmlEX.1.in b/pdf2htmlEX.1.in index 3304097..1e1e8ad 100644 --- a/pdf2htmlEX.1.in +++ b/pdf2htmlEX.1.in @@ -97,7 +97,7 @@ For some versions of Firefox, however, there will be a problem when the font siz .B --auto-hint <0|1> (Default: 0) If set to 1, hints will be generated for the fonts using fontforge. -This may be overrided by --external-hint-tool. This switch is experimental which may break other things. +This may be overrided by --external-hint-tool. .TP .B --tounicode <-1|0|1> (Default: 0) A ToUnicode map may be provided for each font in PDF which indicates the 'meaning' of the characters. However often there is better "ToUnicode" info in Type 0/1 fonts, and sometimes the ToUnicode map provided is wrong. diff --git a/src/pdf2htmlEX.cc b/src/pdf2htmlEX.cc index 5cec6df..5a58764 100644 --- a/src/pdf2htmlEX.cc +++ b/src/pdf2htmlEX.cc @@ -74,14 +74,14 @@ 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, "[Experimental] Whether to generate hints for fonts") + .add("auto-hint", ¶m.auto_hint, 0, "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("css-filename", ¶m.css_filename, "", "Specify the file name of the generated css file") .add("font-suffix", ¶m.font_suffix, ".ttf", "suffix for extracted font files") .add("font-format", ¶m.font_format, "opentype", "format for extracted font files") - .add("external-hint-tool", ¶m.external_hint_tool, "", "external tool for hintting fonts") + .add("external-hint-tool", ¶m.external_hint_tool, "", "external tool for hintting fonts.(overrides --auto-hint)") .add("debug", ¶m.debug, 0, "output debug information") .add("clean-tmp", ¶m.clean_tmp, 1, "clean temporary files after processing")