Behdad Esfahbod
34426c112f
Report original and subset file size when --verbose
2013-08-14 18:30:09 -04:00
Behdad Esfahbod
d315c91d39
Drop unused FontDictionaries when pruning CFF
2013-08-14 18:22:28 -04:00
Behdad Esfahbod
d3fdcc7ad8
Fixup (Chain)ContextFormat1 matching
...
Oops. Python...
2013-08-14 17:59:31 -04:00
Behdad Esfahbod
9290fb47ae
Truncate unused CFF subroutines
...
Still a long way to go:
1. Drop unused FontDictionaries
2. Renumber subroutines
2013-08-14 17:48:31 -04:00
Behdad Esfahbod
11763308bb
Fix ContextFormat2
2013-08-14 15:33:08 -04:00
Behdad Esfahbod
c0ded9449a
Minor
2013-08-14 13:53:33 -04:00
Behdad Esfahbod
3c4720039a
Minor
2013-08-14 13:52:27 -04:00
Behdad Esfahbod
80c8a65d7d
Misc
2013-08-14 12:55:42 -04:00
Behdad Esfahbod
5d4f99d033
Move Options to module space
2013-08-13 20:57:59 -04:00
Behdad Esfahbod
cc4fc4a703
Minor
2013-08-13 20:53:25 -04:00
Behdad Esfahbod
574ce7987c
Hide protected methods
2013-08-13 20:51:44 -04:00
Behdad Esfahbod
b7f460b9c7
Hide protected methods
2013-08-13 20:48:33 -04:00
Behdad Esfahbod
582809778a
Minor
2013-08-13 20:46:52 -04:00
Behdad Esfahbod
23b2ee9350
Minor
2013-08-13 20:29:10 -04:00
Behdad Esfahbod
22f5cfc457
More whitespace
2013-08-13 20:25:37 -04:00
Behdad Esfahbod
71f7c747c8
Minor
2013-08-13 20:17:07 -04:00
Behdad Esfahbod
c56bf48623
Close font
2013-08-13 20:13:33 -04:00
Behdad Esfahbod
3d4c471512
Minor
2013-08-13 20:10:17 -04:00
Behdad Esfahbod
318adc0967
Even more whitespace
2013-08-13 20:09:28 -04:00
Behdad Esfahbod
1ee298d840
Hide unique_sorted
2013-08-13 20:07:09 -04:00
Behdad Esfahbod
616d36e5cf
More whitespace
2013-08-13 20:02:59 -04:00
Behdad Esfahbod
e9f0b15d2e
More whitespace
2013-08-13 19:54:25 -04:00
Behdad Esfahbod
77a2b28b61
More whitespace
2013-08-13 19:53:30 -04:00
Behdad Esfahbod
9e856ea603
Whitespace
2013-08-13 19:50:38 -04:00
Behdad Esfahbod
fc912be84d
Don't use trailing backslashes
2013-08-13 19:21:17 -04:00
Behdad Esfahbod
bff33d29c5
Minor
2013-08-13 19:11:01 -04:00
Behdad Esfahbod
7abcb00725
Remove unused code
2013-08-13 18:56:51 -04:00
Behdad Esfahbod
dc0c48358d
Use iteritems() / iterkeys() / itervalues()
2013-08-13 18:50:36 -04:00
Behdad Esfahbod
50cff38ea2
Cleanup list/dict comprehensions
2013-08-13 18:40:36 -04:00
Behdad Esfahbod
9eeeb4ee3a
Cleanup global variables
2013-08-13 16:58:50 -04:00
Behdad Esfahbod
26d9ee7315
Cleanup Exceptions
2013-08-13 16:55:01 -04:00
Behdad Esfahbod
9a49ead1a0
Cleanup imports
2013-08-13 16:51:59 -04:00
Behdad Esfahbod
579671a2d8
Minor
2013-08-13 16:25:29 -04:00
Behdad Esfahbod
4e72186bf3
Minor
2013-08-13 16:24:45 -04:00
Behdad Esfahbod
31ebebef33
Minor
2013-08-13 16:02:33 -04:00
Behdad Esfahbod
8e3b88645e
Minor
2013-08-13 16:02:18 -04:00
Behdad Esfahbod
dd7b0fc90c
Minor
2013-08-13 16:00:28 -04:00
Behdad Esfahbod
409286a44b
Minor
2013-08-13 15:57:33 -04:00
Behdad Esfahbod
1a4e72ec0a
Implement CFF subsetting
2013-08-13 15:46:37 -04:00
Behdad Esfahbod
9ec5215bd9
Support --text=
2013-08-13 14:06:58 -04:00
Behdad Esfahbod
a7d22431e0
Add closure-gsub-text.py
2013-08-13 12:47:48 -04:00
Behdad Esfahbod
db6d2e98af
Minor
2013-08-13 12:42:12 -04:00
Behdad Esfahbod
d1c66ec402
Minor
2013-08-13 12:31:33 -04:00
Behdad Esfahbod
e6fc8caec4
Drop unknown tables
2013-08-13 12:27:41 -04:00
Behdad Esfahbod
f6b668edf5
Refactor font loading
2013-08-13 12:23:02 -04:00
Behdad Esfahbod
033dfcdf26
Make closure_glyphs() inplace
2013-08-13 11:40:50 -04:00
Behdad Esfahbod
aeacc15839
If recursed lookups may have non-1to1 lookups go into chaos mode
...
We don't know what may happen, so don't narrow down glyphset
based on fixed-position assumptions.
This corrects flaw introduced in previous commit. All good now.
2013-08-12 20:24:33 -04:00
Behdad Esfahbod
849d25c95d
Improve subsetting of Context formats
...
When recursing for closure, just pass down glyphs that could have
actually matched the rule.
This can result in wrong results if the recursed lookup is NOT
one-to-one. Fix coming.
In the mean time, test with NotoSansDevanagari-Bold.ttf and
chars uni91f,uni94d,uni930 to see the difference.
2013-08-12 19:25:44 -04:00
Behdad Esfahbod
6c11b894f3
Minor
2013-08-12 15:41:30 -04:00
Behdad Esfahbod
93e2636887
Minor
2013-08-09 14:22:48 -04:00