Skip to content

Commit

Permalink
new option: remove unused glyphs
Browse files Browse the repository at this point in the history
  • Loading branch information
coolwanglu committed Oct 5, 2012
1 parent baa375f commit 091b623
Show file tree
Hide file tree
Showing 15 changed files with 4,997 additions and 26 deletions.
4 changes: 3 additions & 1 deletion TODO
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
remove unused glyphs

don't dump image when there is nothing

Integrate splash/cairo
Expand All @@ -8,7 +10,7 @@ about glyph width:
- IE
- stretching ratio might not be correct.. letter 'f'

draw lines with CSS
draw non-orthogonal lines with CSS

create a glyph for ' ', if there is not in a font

Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
pdf2htmlex (0.5-1~git201210051800rbaa37-0ubuntu1) precise; urgency=low

* Regularly re-packing.

-- WANG Lu <[email protected]> Fri, 05 Oct 2012 18:00:48 +0800

pdf2htmlex (0.5-1~git201209270317r6fa14-0ubuntu1) precise; urgency=low

* Regularly re-packing.
Expand Down
11 changes: 7 additions & 4 deletions pdf2htmlEX.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,8 @@ If set to 1, glyphs narrower than described in PDF will be strecth; otherwise sp
.B --squeeze_wide_glyph <0|1> (Default: 0)
If set to 1, glyphs wider than described in PDF will be squeezed; otherwise it will be truncated.
.TP
.B --css-filename <filename> (Default: <none>)
Specify the filename of the generated css file, if not embedded.

If it's empty, the file name will be determined automatically.
.B --remove-unused-glyph <0|1> (Default: 0)
[Experimental] If set to 1, remove unused glyphs in embedded fonts in order to reduce the file size.
.TP
.B --font-suffix <suffix> (Default: .ttf), --font-format <format> (Default: truetype)
Specify the suffix and format of fonts extracted from the PDF file. They should be consistent.
Expand All @@ -136,6 +134,11 @@ If specified, the tool will be called in order to enhanced hinting for fonts, th

The tool will be called as '<tool> <in.suffix> <out.suffix>', where suffix will be the same as specified for --font-suffix.
.TP
.B --css-filename <filename> (Default: <none>)
Specify the filename of the generated css file, if not embedded.

If it's empty, the file name will be determined automatically.
.TP
.B --debug <0|1> (Default: 0)
Show debug information.
.TP
Expand Down
Loading

0 comments on commit 091b623

Please sign in to comment.