10 Commits

Author SHA1 Message Date
Behdad Esfahbod
285d7b81d3 [subset] Fixup CFF hint stripping
Two things:

1. Put back glyph width after stripping hints,

2. Ignore what I believe is broken fonts.

I still see glyph width messup.  Debugging.
2013-09-10 20:30:47 -04:00
Behdad Esfahbod
2be33d9383 [subset] Allow specifying '*' to choose all glyphs
Useful for testing if nothing else.
2013-09-10 19:28:59 -04:00
Behdad Esfahbod
84763140a0 [subset] Adjust state transition after hintmask 2013-09-10 19:00:48 -04:00
Behdad Esfahbod
e06220767f [subset] Drop hints from CFF if not needed
It's a tricky algorithm, but I think I got the design right.
Bugs optional...
2013-09-10 18:37:54 -04:00
Behdad Esfahbod
fbb9fc1b47 [subset] Remove _NonrecursingT2Decompiler
First, it was wrong because not recursing has implications in hintmasks.

Second, it wasn't needed, because all _used subroutines were already
decompiled anyway.

Fixes this test:

$ pyftsubset SemplicitaPro-Light.otf three
2013-09-05 19:01:39 -04:00
Behdad Esfahbod
ac10d81ac8 Fix misc pychecker warnings 2013-09-03 18:31:59 -04:00
Behdad Esfahbod
7adbdd6242 Fix Subsetting CFFs without subroutines
https://github.com/behdad/fonttools/issues/1

Based on patch from Jens Kutilek.
2013-09-03 16:23:27 -04:00
Behdad Esfahbod
cbcaccf2f8 [subset] Fixup previous commits for fonts that do have FDSelect
Oops!
2013-08-30 16:21:38 -04:00
Behdad Esfahbod
83f1f5c438 [subset] Fix CFF subsetting of fonts with no FDSelectors 2013-08-30 16:20:08 -04:00
Behdad Esfahbod
b69400fe60 Merge pyotlss, rename it to pyftsubset
Adds module fontTools.subset
2013-08-29 18:43:56 -04:00