History log of /external/fonttools/Tools/fontTools/ttLib/tables/ttProgram.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a36c74e8b894801d36aecfb4402801b5542c2347 19-Jan-2014 Behdad Esfahbod <behdad@behdad.org> Add logic for keeping PUSHB/PUSHW distinction

And avoid merging consequent pushes. No option to control this
externally right now, but the logic is there.

Part of https://github.com/behdad/fonttools/issues/92
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.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/ttLib/tables/ttProgram.py
42d305a8245c46e2c3962f5d1757a63b8a552b5c 17-Dec-2013 Behdad Esfahbod <behdad@behdad.org> Further adjustment
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
fcc56e637afd7d593baa5fe0a54a0b0a667b8fbf 17-Dec-2013 Behdad Esfahbod <behdad@behdad.org> Choose most compact representation when writing PUSH instructions

Can use some testing...
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
965c87fb4a7a89fced0a267fa02952094b523955 17-Dec-2013 Behdad Esfahbod <behdad@behdad.org> When disassembling, merge multiple PUSH ops

Fonts typically have multiple consecutive PUSHB / PUSHW
operators. Merge them in the disassembled output.

This, for now, generates worse assmebly because all PUSHB's
grouped with PUSHW's now generate as PUSHW. Followup fix
will address that.
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
ce84d3215e08ab82dc78f25b5219730b8532046d 17-Dec-2013 Behdad Esfahbod <behdad@behdad.org> Generate PUSH mnemonic for PUSHB/NPUSHB/PUSHW/NPUSHW

Reduces XML noise while reenabling the optimization
during assembly.

Fixes https://github.com/behdad/fonttools/issues/73
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
3714c78c92c511e0e54a78bccfd8cc57c9880906 17-Dec-2013 Behdad Esfahbod <behdad@behdad.org> When writing PUSH instructions, obey requested opcode

Previously fonttools was choosing between the optimal opcode
from PUSHB, NPUSHB, PUSHW, and NPUSHW. We now respect
whatever was requested and err if the format doesn't support
the data.

Morevoer, if the number of numbers to push is more than 255,
we add multiple push instructions to push all the numbers.

Finally, add a new pseudo-opcode "PUSH" that automatically
chooses the best format.

This, by itself, reduces roundtrip noise by not optimizing
the bytecode as it was before. In a followup commit I'll
change the bytecode disassembler to always produce PUSH
in the textual instructions instead of the four variants.
That way, we get both the optimization during assembling,
and reduced noise in XML.

Part of https://github.com/behdad/fonttools/issues/73
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
6d658cf0ea4f0d0e26c0138ff0845fd37b558b89 07-Dec-2013 Behdad Esfahbod <behdad@behdad.org> Minor
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.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/ttLib/tables/ttProgram.py
e388db566b9ba42669c7e353db4293cf27bc2a5b 28-Nov-2013 Behdad Esfahbod <behdad@behdad.org> py23 Use new-style classes

Such that we get the same semantics in both Python 2 and 3.
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
18316aa769566eeb6f3f4a6ed2685fa8f8e861c2 28-Nov-2013 Behdad Esfahbod <behdad@behdad.org> ps23 More bytes fixes. All ''join()'s fixed
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
32c10eecffb4923e0721c395e4b80fb732543f18 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> py23 from __future__ import division and adjust divisions
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
30e691edd056ba22fa8970280e986747817bec3d 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> py23 from __future__ import print_function
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
7ed91eca1eaa96b79eae780778e89bb9ec44c1ee 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> py23 import in all nontrivial source files and unused import cleanup
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
14fb031125b773f0a15eb19be4f02ed8540b2db6 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Remove most uses of module string
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
3ec6a258238b6068e4eef3fe579f1f5c0a06bbba 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> 2to3 --fix=print with manual fixup
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
ac1b4359467ca3deab03186a15eae1d55eb35567 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> 2to3 --fix=idioms
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
3a9fd301808f5a8991ca9ac44028d1ecb22d307f 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> 2to3 equivalent to --fix=tuple_params

I hope I got this all right...
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
dc7e6f3e5563a853477ebe26166b002c158dbe8b 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> 2to3 --fix=repr
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
cd5aad92f23737ff93a110d5c73d624658a28da8 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> 2to3 --fix=raise
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
180ace6a5ff1399ec53bc696e8bef7cce6eef39a 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> 2to3 --fix=ne
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
fc4f4384966bd88f5d304e342895c42cf16c89d2 18-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Fix parsing of hinting instructions that end in a PUSHB

Sounds useless, but MReifutaiM-Regular.ttf seems to have that, and the
parsing back from XML was failing because we expected a token whereas
after dropping whitespace there wasn't any left.
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
67fef70631891279de499473c4e528f1b8f92663 15-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Support decode/encoding of unknown glyf hinting instructions

New instructions can be defined in the prep program. We don't
check that the "unknown" instruction was actually defined. Just
pass it through.

Fixes ttx with Skia.ttf on the Mac OS X.

Fixes https://github.com/behdad/fonttools/issues/21
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
4ff77121313e2af3b43ef8285495a2d4669dff2a 15-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Restructure code

In anticipation of upcoming change.
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
4fab60ca5b023855fc35e14b5d1aa99e4cc03317 15-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Remove unused instruction name propagation

No functional change whatsoever.
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
7d2c10ec74b923facf7cb496ac79f56f1d3d6a84 25-Jul-2013 Behdad Esfahbod <behdad@behdad.org> Allow toXML() to be called on individual tables

Was hitting a missing attribute since disassembleInstructions was
being set by saveXML() only.
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
91bca4244286fb519c93fe92329da96b0e6f32ee 18-Oct-2012 jvr <jvr@4cde692c-a291-49d1-8350-778aa11640f8> merging fixes & changes from delft-sprint-2012

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@611 4cde692c-a291-49d1-8350-778aa11640f8
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
86368e7ac0565f965a71cfa50b0bcfcb38046609 08-Nov-2009 pabs3 <pabs3@4cde692c-a291-49d1-8350-778aa11640f8> Raising strings is deprecated in Python 2.5, raise an exception instead.

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@569 4cde692c-a291-49d1-8350-778aa11640f8
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
d67cf25974ab1d9c022d3a2d24a31cace48bbd60 16-Sep-2008 jvr <jvr@4cde692c-a291-49d1-8350-778aa11640f8> don't use 'as' as a name, it's a keyword in Python >= 2.6


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@563 4cde692c-a291-49d1-8350-778aa11640f8
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
02c17a7d3df1cedb1dc803428e6714781de27269 24-May-2002 jvr <jvr@4cde692c-a291-49d1-8350-778aa11640f8> fixed ttdump -i mode


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@258 4cde692c-a291-49d1-8350-778aa11640f8
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
ae43d92ea9e8f9dee1e886bd0116ff7706bbf7c0 07-Jan-2002 jvr <jvr@4cde692c-a291-49d1-8350-778aa11640f8> Hm, these instructions had their stack pop-count reversed.
Thanks to L. Peter Deutsch for finding this.


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@176 4cde692c-a291-49d1-8350-778aa11640f8
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
b263e4d118e1d109763dd000df8559ad68654788 01-Feb-2000 Just <Just@4cde692c-a291-49d1-8350-778aa11640f8> reinstated accidentally deleted regex.


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@78 4cde692c-a291-49d1-8350-778aa11640f8
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
51e75db43e60555d2c92c015756ebaf74a3a1ebd 01-Feb-2000 Just <Just@4cde692c-a291-49d1-8350-778aa11640f8> - added assembler: we've got a full round trip now!
- added toXML() and fromXML() methods


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@74 4cde692c-a291-49d1-8350-778aa11640f8
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py
7842e56b97ce677b83bdab09cda48bc2d89ac75a 16-Dec-1999 Just <Just@4cde692c-a291-49d1-8350-778aa11640f8> Created a new library directory called "FreeLib". All OpenSource RFMKII components will reside there, fontTools being the flagship.


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@2 4cde692c-a291-49d1-8350-778aa11640f8
/external/fonttools/Lib/fontTools/ttLib/tables/ttProgram.py