Behdad Esfahbod
98769437cd
[subset] Fix against missing AttachList entries
2013-11-19 14:40:57 -05:00
Behdad Esfahbod
1117445fab
[subset] Protect against missing rulesets
...
Fixes subsetting Molengo-Regular.ttf.
2013-11-18 20:20:49 -05:00
Behdad Esfahbod
7e97247925
[subset] Handle inexistent feature / lookup lists
2013-11-15 17:57:15 -05:00
Behdad Esfahbod
fe6bc4c7de
[subset] Don't drop hinting info by default
...
Most people expect hinting to be preserved, and the CFF hint-stripper
is slightly buggy right now.
2013-11-02 11:10:23 +00:00
Behdad Esfahbod
2a70f4a45f
[subset] Fix CFF hint-stripping
...
Was causing OTS failure when subsetting 'apple' glyph of
InformaPro-Light.otf for example.
2013-10-28 15:18:07 +01:00
Behdad Esfahbod
4d99d14dec
[subset] Don't produce empty BlueValues
...
OTS didn't like it.
2013-10-28 13:15:08 +01:00
Behdad Esfahbod
a6241e6205
[subset] Retain cmap table even if empty
...
Since it's a required table.
2013-10-28 13:09:25 +01:00
Behdad Esfahbod
26560d238f
[subset] Add TODO item
2013-10-26 22:03:35 +02:00
Behdad Esfahbod
98b60757ab
[subset] Fix renumbering of (Chain)ContextFormat2
...
Jonathan says: "It was broken."
2013-10-14 17:50:06 +02:00
Behdad Esfahbod
3977d3e9e2
[subset] Typo
2013-10-14 17:50:06 +02:00
Behdad Esfahbod
e1a010c261
[subset] Fix AttributeError: 'NoneType' object has no attribute 'prune_hints'
2013-10-09 15:57:22 +02:00
Denis Jacquerye
bed5f61e13
* replace _dict() by dict() as in d73f22530ecadcbdfb2cbc5752df73367ae09a5a
2013-10-09 11:16:25 +02:00
Behdad Esfahbod
16fc323cc2
[subset] Drop CFF font-wide hinting values (bluezones, etc)
2013-09-30 15:10:01 -04:00
Behdad Esfahbod
9255d33f04
Remove stale comment
2013-09-27 16:38:39 -04:00
Behdad Esfahbod
043108cbdb
[subset] Fix glyf component closure
...
https://github.com/behdad/fonttools/pull/11
2013-09-27 16:29:50 -04:00
Behdad Esfahbod
626107c833
Move some methods from subset.py to 'glyf' table implementation
2013-09-20 16:36:00 -04:00
Behdad Esfahbod
46d260f2a0
[subset] Clean up imports
2013-09-20 16:35:56 -04:00
Behdad Esfahbod
fd92d4c25f
[subset] Minor
2013-09-20 16:35:50 -04:00
Behdad Esfahbod
b61d7ac553
Relicense new tools to the original fonttools license
...
They were under Apache.
2013-09-19 20:03:20 -04:00
Behdad Esfahbod
28fc49824a
Minor
2013-09-18 19:01:16 -04:00
Behdad Esfahbod
0ec17d96eb
[subset] NameError: global name 'rec' is not defined ( #10 )
...
https://github.com/behdad/fonttools/issues/10
2013-09-15 18:30:41 -04:00
Behdad Esfahbod
21582e9f6c
[subset] Minor TODO items
2013-09-12 16:47:52 -04:00
Behdad Esfahbod
9953685818
[subset] Fix CFF hint stripping
...
Stupid mistake. Seems to work now.
2013-09-12 00:23:11 -04:00
Behdad Esfahbod
010c5f9136
[subset] Minor verbose output improvement
2013-09-10 20:54:46 -04:00
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