History log of /external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/otConverters.py
6ed2eb409231a7fe3e0c2a135f9a89796206f639 17-Dec-2013 Behdad Esfahbod <behdad@behdad.org> Write LookupType as a comment

We compute LookupType from the type of the subtables, so write it out
as an informative comment in XML as opposed to an element.
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
5fec22bfcd53fe9a10fa066e17d0a0d18cf2d74a 17-Dec-2013 Behdad Esfahbod <behdad@behdad.org> Compute correct LookupType when compiling font

Also ensures that all subtables of a lookup have the same
lookup type.
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
dafdb2933a9d4ef7ef5365c5e8ecfba39b4d3c57 17-Dec-2013 Behdad Esfahbod <behdad@behdad.org> Further optimize table loading

Again, both faster and more memory efficient
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
d76fa68785bc843ad83e2901ada96f2a5b02397d 09-Dec-2013 Behdad Esfahbod <behdad@behdad.org> Allow specifying table type as converter

Needed for upcoming MATH table.
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
3fa26d783f6a2ab5103df66a99d0322491e1d8a6 29-Nov-2013 Behdad Esfahbod <behdad@behdad.org> py23 Use fixedToFloat() for fixed version numbers
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
32c10eecffb4923e0721c395e4b80fb732543f18 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> py23 from __future__ import division and adjust divisions
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
30e691edd056ba22fa8970280e986747817bec3d 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> py23 from __future__ import print_function
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.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/otConverters.py
b774f9f684c5a0f91f5fa177c9a461968789123f 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> 2to3 --fix=types manual additions

Don't know why the tool didn't catch these.
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
3ec6a258238b6068e4eef3fe579f1f5c0a06bbba 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> 2to3 --fix=print with manual fixup
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
ac1b4359467ca3deab03186a15eae1d55eb35567 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> 2to3 --fix=idioms
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.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/otConverters.py
cd5aad92f23737ff93a110d5c73d624658a28da8 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> 2to3 --fix=raise
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
180ace6a5ff1399ec53bc696e8bef7cce6eef39a 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> 2to3 --fix=ne
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
2b06aaa2a6bcd363c25fb0c43f6bb906906594bd 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> 2to3 --fix=import
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
bc5e1cb195c0bfa1c8e7507326d5a9ad05aecb4b 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> 2to3 --fix=has_key
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
3ac9e63fce920ca3cf12f53e067641849c9cdbb4 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Load / save FeatureParamSize decipoints values as float
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
9e1bd2d0b4416acc7fce623a3bae37064d61d15b 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Implement FeatureParams

All types of FeatureParams are correctly handled now.

The only thing not handled is broken fonts generated with the
old AFDKO that have their FeatureParams offset computed wrong.
I don't currently plan on handling those.

Fixes https://github.com/behdad/fonttools/issues/38
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
cb4adf682848103b25f955d19a892fb33fbde9e3 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Fix XML->ttf for fonts that have some missing anchors, etc

Eg. EBGaramond12-Regular.ttf. It has a base anchor missing.
Dropping the empty table from XML changes the size of the base
anchor array, which will then result in an assertion because
all bases should have the same array length.

Fixes many other broken fonts too.
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
2f2fd9ca7c1da36d86adfc7467c53fb283d9196e 27-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Minor
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
f4e61ae637f3d12b4121c1264560390b430d294f 26-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Undo making subReader lazy

Need this for upcoming FeatureParams implementation.
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
79f734414c2a8d6851fb1b3ec69287ff0e0077b9 26-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Further simplify OTTableReader/Writer
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
e0c2e8e2af82f79c25026bb8e603ca5bd560c552 25-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Fixup extension / longoffset
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
6b6e9fae23499de4d17372d0bd7ce4a8f194b4d7 25-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Rename repeatOffset to aux

To be used for other purposes soon.
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
d58c38dc3660f764b659ec13fcbc6e54c1ec2078 25-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Seprate longOffset from ExtSubTable
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
fe67e3121e421e8f146c7b4df8b7188c620d1e5a 25-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Simplify ExtSubTable
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
58acba2d0284ec63bf27c457fa261adf7774e996 25-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Remove "optimization" re Extension lookups

Historically, Extension lookups were only decompiled upon access,
and decompiled Extension lookups were possibly copied verbatim to
output when compiling. This discrepancy with all other table types
is confusing and undeed. The possible time saving is not worth the
loss in possible optimization of table data. Remove.
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
7ef23a85ae49039ae491e337be173caba7bdd534 25-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Add font.lazy
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
c491f45eff9a884e69a44cbf9ae69288be9478b5 25-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Create subReaders lazily

Should improve memory usage
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
0fac7fe32072e813d36882ba68af1227b6caff9b 25-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Remove unused parameter
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
ee27eb8517ee53594a6232d110e17403a37ff2d9 24-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Only propagate counts that are used in sub-tables
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
2edc2da303716b9e401fd8dc808f54456d8137f2 24-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Use tableDict for DeltaValue lookbacks

Was abusing the set/getCount machinery before.
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
078b36325d7f64ae989e7db22e4910bf6550562d 24-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Instead of countVars, pass down tableDict

This is the tableDict of current struct being loaded. This does NOT
get propagated down.

Currently unused.
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
7981704a0aade1831d36ece04e2faa02394e8305 24-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Move countVars into reader/writer objects

The countVars arguments are all unused now. Cleanup coming.
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
7d130307e6e6094e40a841a3c41fc74b203b7e8e 24-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Simplify converter mapping for DeltaValue
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
6f9b64f2966d18cccad3fcf6e03f44f208dbc2a4 24-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Fixup 41caf2d for DeltaValue tables

Not that I can find any fonts having these... Had to construct one
to test.
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
ffc3cfeed12e67b383ed5f540d05cab01b33bb77 24-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Allow using binary / octal / hex numbers in XML

In OpenType Layout tables that is. Most (all) of the other
tables already use safeEval() which accepts these kinds of
things.
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
a221a57ccdeefc752384778444ee737d4559a516 24-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Improve Version handling

Version is really just a major.minor, NOT a Fixed. But it has
been implemented as Fixed. We now:

1. Check that major is 1,
2. If minor is not 0 (only defined for GDEF so far), then
print the whole thing as hex in XML,
3. When reading the XML, accept hex,
4. In all four methods dealing with Version, support both
fixed version (ie. 1.0), and long version (ie. 0x00010000).
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
0b18ef611103518c4eecc22668063ada473a9312 24-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Remove Fixed vs fixed32 inconsistency
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
ea017bd66f790d066a3f4f0b5974479875dd5dfc 24-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Remove USHORT vs uint16 inconsistency
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
5962268b7971f624a56ba97c75d95ed11c190ac4 24-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Remove unused "LONG" converter

LONG was replaced by Fixed long time ago.
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
41caf2dea1e0c58c5ac763ad2575592df734b62c 23-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Remove tableStack in favor of countVars

We only needed tableStack to look back for counts. So, just store
counts. Gives ~8 speedup for large fonts I tested. We are not
faster than not loading fonts lazily without this patch, so the
laziness patch combined with this doesn't have a net negative
performance impact anymore.
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
0585b64f70cca15aab3483f529c8faf1b7b825fd 22-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Minor
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
d01c44a59bcf8f8e75e8606142da422319d281e2 22-Nov-2013 Behdad Esfahbod <behdad@behdad.org> When lazy-loading tables, copy ValueFormat

Otherwise it may be overwritten before we use it.
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
fc10b20c25af08267bba6ac56aea9638cc56f603 21-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Minor
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
f50d0dff869a8b74bcff028721204a284cadff12 21-Nov-2013 Behdad Esfahbod <behdad@behdad.org> Load all OpenType sub-structures lazily

Huge win for subsetter and anyone else who doesn't need the entire
tables. Subsetting a huge font (eg. NotoSans-Regular.ttf) to a
small set (say, main Cyrillic characters) is something like six
times faster now. Bulk of time was being spent in blowing up the
GPOS kerning pairs and attach points. Now we don't load those if
they won't be in the final subset.

Slight slowdown for usecases that need the entire table.
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
3ac875aa1df2c773a973aa8f15852c4551ce20f4 12-Jun-2013 pabs3 <pabs3@4cde692c-a291-49d1-8350-778aa11640f8> Fix consistency of space/tab usage.

Reference: http://docs.python.org/reference/lexical_analysis.html#indentation

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@613 4cde692c-a291-49d1-8350-778aa11640f8
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
823f8cd15f16bb9dc3991c2672f16dd90579711b 21-Oct-2006 jvr <jvr@4cde692c-a291-49d1-8350-778aa11640f8> Misc patches from rroberts:

fontTools/ttx.py
# support virtual GIDs, support handling some GSUB offset overflows.

fontTools/ttlib/__init__.py
# 1) make getReverseGlyphMap a public function; I find a reverse map
to often be useful
# 2) support virtual glyphs, e.g. references to GID's that are not in the font.
# Added the TTFont argument allowVID (default 0) to turn this off and on;
# added the arg requireReal ( default 0) so as to get the obvious
default behaviour when
# allowVID is 0 or 1, but to allow requiring a true GID when allowVID is 1.

fontTools/ttlib/tables/otBase.py
fontTools/ttlib/tables/otConverters.py
fontTools/ttlib/tables/otData.py
fontTools/ttlib/tables/otTables.py
# 1) speed optimization
# - collapse for loops
# - do not decompile extension lookups until a record is requested
from within the lookup.
# 2) handling offset overflows
# 3) support of extension lookups
# 4) Fixed FetauresParam converter class def so as to survive a font
that has this offset non-NULL.
# This fixes a stack dump.
# The data will now just get ignored


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@511 4cde692c-a291-49d1-8350-778aa11640f8
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
52966bb14409b558dc46b52d34953fbde7dc1bca 12-Sep-2002 jvr <jvr@4cde692c-a291-49d1-8350-778aa11640f8> minor refactoring


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@340 4cde692c-a291-49d1-8350-778aa11640f8
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
7007a0854548f744c44bb9c35380efcba7894bfb 16-May-2002 jvr <jvr@4cde692c-a291-49d1-8350-778aa11640f8> whoops, compile was broken due to Fixed 'fix'


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@238 4cde692c-a291-49d1-8350-778aa11640f8
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
b776a882ee55fff8c39543f352c528bb5d338177 13-May-2002 jvr <jvr@4cde692c-a291-49d1-8350-778aa11640f8> added Fixed type


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@228 4cde692c-a291-49d1-8350-778aa11640f8
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
64b5c80e80444a124da335e8d4d208bffcf2737b 11-May-2002 jvr <jvr@4cde692c-a291-49d1-8350-778aa11640f8> results of morning-after code review, added some doc strings, etc.


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@210 4cde692c-a291-49d1-8350-778aa11640f8
/external/fonttools/Lib/fontTools/ttLib/tables/otConverters.py
d4d151390d1288f8d2df30f6dfa26a309c7334da 11-May-2002 jvr <jvr@4cde692c-a291-49d1-8350-778aa11640f8> Completely revamped OT support; this time it works and is complete. XML output is not yet as pretty as can be.


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