From 0ba379cbdb520d223a03e0788fc638ebc9bb14a6 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Thu, 3 Oct 2013 15:19:41 +0800 Subject: [PATCH] show hints for font hinting tool --- pdf2htmlEX.1.in | 2 +- src/pdf2htmlEX.cc | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pdf2htmlEX.1.in b/pdf2htmlEX.1.in index 807c49a..4fdbc82 100644 --- a/pdf2htmlEX.1.in +++ b/pdf2htmlEX.1.in @@ -168,7 +168,7 @@ This may be preceded by --external-hint-tool. .B --external-hint-tool (Default: ) If specified, the tool will be called in order to enhanced hinting for fonts, this will precede --auto-hint. -The tool will be called as ' ', where suffix will be the same as specified for --font-suffix. +The tool will be called as ' ', where suffix will be the same as specified for --font-format. .TP .B --stretch-narrow-glyph <0|1> (Default: 0) diff --git a/src/pdf2htmlEX.cc b/src/pdf2htmlEX.cc index 91547db..db8e03c 100644 --- a/src/pdf2htmlEX.cc +++ b/src/pdf2htmlEX.cc @@ -307,6 +307,11 @@ void check_param() exit(EXIT_FAILURE); } #endif + + if((param.font_format == "ttf") && (param.external_hint_tool == "")) + { + cerr << "Warning: No hint tool is specified for truetype fonts, the result may be rendered poorly in some circumstances." << endl; + } } int main(int argc, char **argv)