History log of /external/fonttools/Lib/fontTools/subset.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3e19354bf5726b924a46310c5af453506d40e120 14-May-2014 Behdad Esfahbod <behdad@behdad.org> [subset] Unbreak after e898881ed12d7ce96948f2905d725847c76bc9e8
/external/fonttools/Lib/fontTools/subset.py
11631b4917b087625543c97467faa40da42c82d9 13-May-2014 Behdad Esfahbod <behdad@behdad.org> [subset] Fix PairPos subsetting

Ouch!

Fixes https://github.com/behdad/fonttools/pull/118
/external/fonttools/Lib/fontTools/subset.py
e898881ed12d7ce96948f2905d725847c76bc9e8 09-May-2014 Behdad Esfahbod <behdad@behdad.org> [subset] Implement format14 variation selectors
/external/fonttools/Lib/fontTools/subset.py
f09164a0de9882c62f783ad608882db25626541a 02-May-2014 Behdad Esfahbod <behdad@behdad.org> [subset] Don't recalculate "modified" timestamp

To recalculate (which was the default before), use --recalc-timestamp

Fixes https://github.com/behdad/fonttools/issues/115
/external/fonttools/Lib/fontTools/subset.py
11580c55bb529acb258b048cfc7443e7d262de80 14-Mar-2014 Behdad Esfahbod <behdad@behdad.org> Minor
/external/fonttools/Lib/fontTools/subset.py
9f6ccad6663567e0d5424eec1cbcf333a264f7bc 12-Mar-2014 Behdad Esfahbod <behdad@behdad.org> [subset] Correctly handle subsetting non-Unicode cmap subtables
/external/fonttools/Lib/fontTools/subset.py
a08b1b1d2024e087f91d8fcfca67e7e2ee000b4c 12-Mar-2014 Behdad Esfahbod <behdad@behdad.org> [subset] Use NameRecord.isUnicode()
/external/fonttools/Lib/fontTools/subset.py
2007a491e31faa7ff30ce6a0a141f00357dbbe37 12-Mar-2014 Behdad Esfahbod <behdad@behdad.org> [subset] Use CmapSubtable.isUnicode()/isSymbol()

Fixes https://github.com/behdad/fonttools/issues/111
/external/fonttools/Lib/fontTools/subset.py
1ae29591efbb29492ce05378909ccf4028d7c1ee 14-Jan-2014 Behdad Esfahbod <behdad@behdad.org> from __future__ import absolute_import

Such that our Python 2 is closer to Python 3.

Part of https://github.com/behdad/fonttools/issues/77
/external/fonttools/Lib/fontTools/subset.py
fc1d0525b6a6ea3ea5d5f1017c1d4886f6dd1e52 18-Dec-2013 Behdad Esfahbod <behdad@behdad.org> Merge branch 'merge'
45ed572e310cc4b9c359d83c1ed64065414e8353 17-Dec-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Fix up from recent changes
/external/fonttools/Lib/fontTools/subset.py
0be386edb519d3a710d46be0b7bd41d9756cc09d 17-Dec-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Fix subsetting of Khmer fonts

Read comment.
/external/fonttools/Lib/fontTools/subset.py
283fb26820a8f6a1f8ae7104699de708364ffb96 16-Dec-2013 Behdad Esfahbod <behdad@behdad.org> By default, don't load fonts lazily

Lazy loading has implications on how people use objects.
So, by default, don't load lazily. This only affects
GSUB/GDEF/GPOS/etc and is closer to what fonttools used
to do traditionally.

Turn lazy loading on in subset and inspect.
/external/fonttools/Lib/fontTools/subset.py
6c51f500fb2d251056e20abdec7b0f2bb7f3404f 16-Dec-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Make sure objects are decompiled during subsetting

We need to ensureDecompiled() whenever an object is modified
before we look up any member of it.

Note that normally objects remaining decompiled until we try
to write them out is fine, except for when they depend on
font.getGlyphOrder(). This however, shouldn't normally happen
since if there's an object depending on the glyph list (eg. a
Coverage table), it should already have been process to subset
it according to the requested glyphs. Or that's the idea at
least. The few cases that were not handled are handled
explicitly now.

This was showing a bug when subsetting Cabin for example.
/external/fonttools/Lib/fontTools/subset.py
fa95e87d424d2514fd9f45a03f69ce3691412f0e 16-Dec-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Add more TODO items
/external/fonttools/Lib/fontTools/subset.py
92af6a58b3cdcbe64c7c66f64e3485bc6f118278 10-Dec-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Work around OTS being stupid
/external/fonttools/Lib/fontTools/subset.py
5fd8779fd3188a550c1e73284b8d42f60c4e08b2 10-Dec-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Oops. Remove debug prints
/external/fonttools/Lib/fontTools/subset.py
10a3fff5cba3e94c97e18e8cd83fed0d2549dca4 08-Dec-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Fixup --recommended-glyphs
/external/fonttools/Lib/fontTools/subset.py
c745f69d8ac5473ccfac44e08eddc84c3ea821fe 07-Dec-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Remove unnecessary workaround
/external/fonttools/Lib/fontTools/subset.py
3db5e11c1f737d32a269e535745cedf39691238e 07-Dec-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Remove redundant language systems

After subsetting, remove language systems that are effectively
the same as the default language system.
/external/fonttools/Lib/fontTools/subset.py
ec9436d7f604150f1566f6042391c7b3e800b115 07-Dec-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Remove unreferenced features
/external/fonttools/Lib/fontTools/subset.py
9d2481bedf905fbca566d99a8abfce9892a692e4 07-Dec-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Comments
/external/fonttools/Lib/fontTools/subset.py
baa97d6f177c792935387e683b59e4685a06be52 07-Dec-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Minor
/external/fonttools/Lib/fontTools/subset.py
05a2862a3948a41d39c7a7e6f80656ea7d39cb1e 05-Dec-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Ignore out-of-range glyphIDs

We don't want to support out-of-range glyphIDs in cmap or GSUB.
Explicitly drop them.
/external/fonttools/Lib/fontTools/subset.py
ebcad976c8093fbc2ebb7800df0944b4ee670836 05-Dec-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Minor
/external/fonttools/Lib/fontTools/subset.py
57fb7264a09995d8545ef393338d05846646728a 05-Dec-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Minor
/external/fonttools/Lib/fontTools/subset.py
6bd43247f2fbd9b9cf175f26ab29552b3a705f11 05-Dec-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Add allowVID option to load_font()

Not enabled right now.
/external/fonttools/Lib/fontTools/subset.py
dc87372c88dfd3bb4418c4113d9301102324359e 05-Dec-2013 Behdad Esfahbod <behdad@behdad.org> Use True/False instead of 1/0
/external/fonttools/Lib/fontTools/subset.py
19d7cf2b5fb79ad9279e35cebd6908677e2654db 05-Dec-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Handle non-existing ScriptList

As seen in CinzelDecorative-Regular.otf.
/external/fonttools/Lib/fontTools/subset.py
9e6ef94b5554c5b7dda2de9c863c11ed4b996b7a 04-Dec-2013 Behdad Esfahbod <behdad@behdad.org> Use "is None" instead of "== None"

The latter hits the __eq__ method and can fail because we now
do not allow comparing objects of different types.

For example, was failing subsetting Andika-R.ttf.
/external/fonttools/Lib/fontTools/subset.py
153ec402094adbea673e914385b87f1d99191d0b 04-Dec-2013 Behdad Esfahbod <behdad@behdad.org> Fix a few pychecker warnings

Fixes https://github.com/behdad/fonttools/issues/58
/external/fonttools/Lib/fontTools/subset.py
1f26289013480a0d6d17349eae03a1f45713307a 28-Nov-2013 Behdad Esfahbod <behdad@behdad.org> [subset] py23 Use new-style classes
/external/fonttools/Lib/fontTools/subset.py
b21c9d36eec8e11e905c0427672a435fdc895f87 28-Nov-2013 Behdad Esfahbod <behdad@behdad.org> [subset] py23 fix str usage
/external/fonttools/Lib/fontTools/subset.py
a030a0d25fb6c4829e739cc8f095fb390414e248 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> [subset] py23 from __future__ import division and adjust divisions
/external/fonttools/Lib/fontTools/subset.py
cfeafd79cd04f3cb16a72dad574af0aeae4f509d 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> [subset] py23 from __future__ import print_function
/external/fonttools/Lib/fontTools/subset.py
36e20ff47317ef4f9ec47b52d267f0bf97138192 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> [subset] py23 import
/external/fonttools/Lib/fontTools/subset.py
6890d050efb171abb7f088873d0c3a97f93af09d 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> [subset] 2to3 --fix=dict with manual cleanup
/external/fonttools/Lib/fontTools/subset.py
4cd467c8535dd7cb9798843ba8fb0eb736da3dfc 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> [subset] 2to3 --fix=print with manual fixup
/external/fonttools/Lib/fontTools/subset.py
c2e2e835ec4af747397e3aa1d6c3bb1c8bf021ea 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> [subset] 2to3 --fix=idioms
/external/fonttools/Lib/fontTools/subset.py
b466efef28b2b6652b54b59a059be2e32b3ea90b 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> [subset] 2to3 --fix=xrange
/external/fonttools/Lib/fontTools/subset.py
553c3bbe4e7f5cb075c93aedb34c96efeea262ea 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> [subset] 2to3 --fix=funcattrs
/external/fonttools/Lib/fontTools/subset.py
cc8fc781c4f76ba9ed4cbde07769bb8ce8f3bc1e 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Add TODO item
/external/fonttools/Lib/fontTools/subset.py
d214f20a5176a2c9e42c8faabc07d229469cacf0 26-Nov-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Keep features with FeatureParams
/external/fonttools/Lib/fontTools/subset.py
33378fde46abfe09b329c752b05780d453b3efed 26-Nov-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Minor
/external/fonttools/Lib/fontTools/subset.py
05da970fecf4f03c1a4a7c71d1fac8b0955250f1 25-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Don't renumber MarkGlyphSetsDef
/external/fonttools/Lib/fontTools/subset.py
9fe4eefb1c1afd6c912fc1bf1fc64dde6e674993 25-Nov-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Drop GSUB/GPOS main list items if empty
/external/fonttools/Lib/fontTools/subset.py
5aea27dae384e06f278f2f068054b02226c67403 25-Nov-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Support GDEF MarkGlyphSetsDef
/external/fonttools/Lib/fontTools/subset.py
98769437cdd2c04f14b81a80dd4aa45e3d9f282c 19-Nov-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Fix against missing AttachList entries
/external/fonttools/Lib/fontTools/subset.py
1117445faba2665974dae8227d3ab087afa30ed4 19-Nov-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Protect against missing rulesets

Fixes subsetting Molengo-Regular.ttf.
/external/fonttools/Lib/fontTools/subset.py
7e97247925dab1616971a2fdb94d8462cf3e5d84 15-Nov-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Handle inexistent feature / lookup lists
/external/fonttools/Lib/fontTools/subset.py
fe6bc4c7de12f52e387ee4a3d2f525783de3746f 02-Nov-2013 Behdad Esfahbod <behdad@behdad.org> [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.
/external/fonttools/Lib/fontTools/subset.py
2a70f4a45f41207f2c5938145409351117c7268d 28-Oct-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Fix CFF hint-stripping

Was causing OTS failure when subsetting 'apple' glyph of
InformaPro-Light.otf for example.
/external/fonttools/Lib/fontTools/subset.py
4d99d14decdb9ad52d056d1ad5ce4107a35bb885 28-Oct-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Don't produce empty BlueValues

OTS didn't like it.
/external/fonttools/Lib/fontTools/subset.py
a6241e6205904f06e55155916bf9b8cfdb15f013 28-Oct-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Retain cmap table even if empty

Since it's a required table.
/external/fonttools/Lib/fontTools/subset.py
26560d238f096afcafb5076cb47061f1c2855ec2 26-Oct-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Add TODO item
/external/fonttools/Lib/fontTools/subset.py
98b60757ab9bb0aaa3c1f136e5a837a1b73d22ed 14-Oct-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Fix renumbering of (Chain)ContextFormat2

Jonathan says: "It was broken."
/external/fonttools/Lib/fontTools/subset.py
3977d3e9e21208c6e807f934ca888e691b3faef3 14-Oct-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Typo
/external/fonttools/Lib/fontTools/subset.py
e1a010c261da0bebe104a90d53b10124a3338927 09-Oct-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Fix AttributeError: 'NoneType' object has no attribute 'prune_hints'
/external/fonttools/Lib/fontTools/subset.py
bed5f61e138f50c40fe6dadff3fdf07c29010d2a 08-Oct-2013 Denis Jacquerye <denis.jacquerye@daltonmaag.com> * replace _dict() by dict() as in d73f22530ecadcbdfb2cbc5752df73367ae09a5a
/external/fonttools/Lib/fontTools/subset.py
b640f7435c3d29c57310b1a5f7d8e5b538a4c1e3 20-Sep-2013 Behdad Esfahbod <behdad@behdad.org> [merge] Implement --verbose and --timing
/external/fonttools/Lib/fontTools/subset.py
16fc323cc2c83b033b7f08a5b5aa3df182926e88 30-Sep-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Drop CFF font-wide hinting values (bluezones, etc)
/external/fonttools/Lib/fontTools/subset.py
9255d33f04129e1a7958434a48effb9b0967a828 27-Sep-2013 Behdad Esfahbod <behdad@behdad.org> Remove stale comment
/external/fonttools/Lib/fontTools/subset.py
043108cbdb6a18bf0871410796d346ed86098aaa 27-Sep-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Fix glyf component closure

https://github.com/behdad/fonttools/pull/11
/external/fonttools/Lib/fontTools/subset.py
626107c833da0e5ce5c8b652990222181d0d3834 20-Sep-2013 Behdad Esfahbod <behdad@behdad.org> Move some methods from subset.py to 'glyf' table implementation
/external/fonttools/Lib/fontTools/subset.py
46d260f2a0b46ca8c671f7e1d8a8f0bd04fc1caa 20-Sep-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Clean up imports
/external/fonttools/Lib/fontTools/subset.py
fd92d4c25fafed7c350886380f07003ef71af96b 20-Sep-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Minor
/external/fonttools/Lib/fontTools/subset.py
b61d7ac5530bfe452dfdb834208990505a321689 20-Sep-2013 Behdad Esfahbod <behdad@behdad.org> Relicense new tools to the original fonttools license

They were under Apache.
/external/fonttools/Lib/fontTools/subset.py
28fc49824a2ccf448ca52fd7bdfba01558bb26a6 19-Sep-2013 Behdad Esfahbod <behdad@behdad.org> Minor
/external/fonttools/Lib/fontTools/subset.py
0ec17d96eb7de9229711d5c392c780caf00ad4e8 16-Sep-2013 Behdad Esfahbod <behdad@behdad.org> [subset] NameError: global name 'rec' is not defined (#10)

https://github.com/behdad/fonttools/issues/10
/external/fonttools/Lib/fontTools/subset.py
21582e9f6ca714887a732f5780e8c22fdce2b954 12-Sep-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Minor TODO items
/external/fonttools/Lib/fontTools/subset.py
9953685818344a9093ee0f14a842332e880eda6d 12-Sep-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Fix CFF hint stripping

Stupid mistake. Seems to work now.
/external/fonttools/Lib/fontTools/subset.py
010c5f9136d0e4c60d4d2ed374980076cd67bb72 11-Sep-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Minor verbose output improvement
/external/fonttools/Lib/fontTools/subset.py
285d7b81d3a1d9d060864438580f05c2b44366ff 11-Sep-2013 Behdad Esfahbod <behdad@behdad.org> [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.
/external/fonttools/Lib/fontTools/subset.py
2be33d9383efad4df3a7a9dfcf4cbff2a21735b6 11-Sep-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Allow specifying '*' to choose all glyphs

Useful for testing if nothing else.
/external/fonttools/Lib/fontTools/subset.py
84763140a07906d2257a8a10e161b91460e3cb60 11-Sep-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Adjust state transition after hintmask
/external/fonttools/Lib/fontTools/subset.py
e06220767f2efa8789aabd45cb21763332c2c8b9 10-Sep-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Drop hints from CFF if not needed

It's a tricky algorithm, but I think I got the design right.
Bugs optional...
/external/fonttools/Lib/fontTools/subset.py
fbb9fc1b4787e561711797b9f25e86073250bb82 06-Sep-2013 Behdad Esfahbod <behdad@behdad.org> [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
/external/fonttools/Lib/fontTools/subset.py
ac10d81ac87991513f890334f1f36b70a7432608 04-Sep-2013 Behdad Esfahbod <behdad@behdad.org> Fix misc pychecker warnings
/external/fonttools/Lib/fontTools/subset.py
7adbdd624289d2143149c490fef8d9ede32629f6 03-Sep-2013 Behdad Esfahbod <behdad@behdad.org> Fix Subsetting CFFs without subroutines

https://github.com/behdad/fonttools/issues/1

Based on patch from Jens Kutilek.
/external/fonttools/Lib/fontTools/subset.py
cbcaccf2f8a3086022951ee1986b5e9b64b910f5 30-Aug-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Fixup previous commits for fonts that do have FDSelect

Oops!
/external/fonttools/Lib/fontTools/subset.py
83f1f5c438e415b6dbaef22ddc6e98bfcc1174a2 30-Aug-2013 Behdad Esfahbod <behdad@behdad.org> [subset] Fix CFF subsetting of fonts with no FDSelectors
/external/fonttools/Lib/fontTools/subset.py
b69400fe6064a4e06066fa2eea6023d1a2bf3448 30-Aug-2013 Behdad Esfahbod <behdad@behdad.org> Merge pyotlss, rename it to pyftsubset

Adds module fontTools.subset