mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-21 20:50:07 +00:00
disable auto-hint by default
This commit is contained in:
parent
fddff14dc8
commit
acfcb62bfc
@ -3,8 +3,10 @@ Latest v0.4
|
||||
* (should) do not freeze Firefox
|
||||
* auto hint fonts, 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
|
||||
|
||||
|
||||
v0.3
|
||||
2012.09.16
|
||||
|
||||
|
2
TODO
2
TODO
@ -1,3 +1,5 @@
|
||||
fix auto hint
|
||||
|
||||
bug found in baidu(ubuntu...), bug_chn
|
||||
|
||||
precise link dest
|
||||
|
@ -96,6 +96,8 @@ For some versions of Firefox, however, there will be a problem when the font siz
|
||||
.TP
|
||||
.B --auto-hint <0|1> (Default: 1)
|
||||
If set to 1, hints will be generated for the fonts.
|
||||
|
||||
This switch is experimental which may break other things.
|
||||
.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.
|
||||
|
@ -276,7 +276,6 @@ void ffw_metric(double * ascent, double * descent, int * em_size)
|
||||
|
||||
info->os2_typolinegap = 0;
|
||||
info->linegap = 0;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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, 1.0, "setting a value greater than 1 would increase the rendering accuracy")
|
||||
.add("auto-hint", ¶m.auto_hint, 1, "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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user