Behdad Esfahbod
6af1d5c555
Fix RESERVED
2024-05-22 18:46:07 -06:00
Behdad Esfahbod
58bb96be91
[VARC] Use a DeltaSetIndexMap
2024-05-22 18:46:07 -06:00
Behdad Esfahbod
d37b3942ee
[VARC] Encode indices as 1,2,3,4 bytes long
...
Previously it was 2 or 4.
2024-05-22 18:46:07 -06:00
Behdad Esfahbod
263d4d9a68
Handle scaleY
2024-05-22 18:46:07 -06:00
Behdad Esfahbod
cd1513923b
[VARC] Minor
2024-05-22 18:46:07 -06:00
Behdad Esfahbod
d07d960c75
Fix RESERVED
2024-05-22 18:46:07 -06:00
Behdad Esfahbod
f7337b55af
[VARC] Make HAVE_VARIATIONS flag automatic
2024-05-22 18:46:07 -06:00
Behdad Esfahbod
76d293ec05
[VARC] Simplify reading
2024-05-22 18:46:06 -06:00
Behdad Esfahbod
43e054b377
[VARC] Minor
2024-05-22 18:46:06 -06:00
Behdad Esfahbod
8ea97657de
[VARC] Fix copilot mistake in decompile
...
Ouch!
2024-05-22 18:46:06 -06:00
Behdad Esfahbod
f73d6f2a6f
[VARC] Fixups
2024-05-22 18:46:06 -06:00
Behdad Esfahbod
9cc3689fb1
[VARC] Towards drawing new design
2024-05-22 18:46:06 -06:00
Behdad Esfahbod
42a5fbdfdd
[VARC] Redesign table
...
No spec yet. For results see:
https://github.com/harfbuzz/boring-expansion-spec/issues/103#issuecomment-1863533305
2024-05-22 18:46:06 -06:00
Behdad Esfahbod
c91984ef77
[VARC] Use sparse-regions in MultiVarStore
...
Might revert as the savings are small.
https://github.com/harfbuzz/boring-expansion-spec/issues/103#issuecomment-1861531669
2024-05-22 18:46:06 -06:00
Behdad Esfahbod
a958c68d79
[VARC] Simplify TupleValues
...
Move it to a converter instead of a class.
2024-05-22 18:46:06 -06:00
Behdad Esfahbod
febbb34dba
[CFF2Index] Avoid infinite loop visitor by hiding symbol
2024-05-22 18:46:06 -06:00
Behdad Esfahbod
272f73632a
[VARC] Fix instanciating component
2024-05-22 18:46:06 -06:00
Behdad Esfahbod
4db90f588e
[loca] Minor speedup
2024-05-22 18:45:28 -06:00
Behdad Esfahbod
0a7993998d
Revert "[glyf] Load using LazyDict"
...
This reverts commit b493729eff954909672694b67a453964f33ac893.
2024-05-22 18:45:28 -06:00
Behdad Esfahbod
cae76d540a
[glyf] Load using LazyDict
...
Going to revert. No speedup since glyphs are loaded lazy
anyway. And one test fails I have no idea why:
Tests/ttLib/woff2_test.py::WOFF2GlyfTableTest::test_reconstruct_glyf_padded_4
2024-05-22 18:45:28 -06:00
Behdad Esfahbod
3ff2ee61e1
Move lazy datastructures to misc.lazyTools
2024-05-22 18:45:28 -06:00
Behdad Esfahbod
3806fd2558
Move a couple of functions outline
2024-05-22 18:45:28 -06:00
Behdad Esfahbod
7471ac6d4d
[gvar] Speed up loading by not reading all offsets
2024-05-22 18:45:28 -06:00
Behdad Esfahbod
61916c1034
[gvar] Speed up loading a bit
...
More to come.
2024-05-22 18:45:28 -06:00
Behdad Esfahbod
7de1306d92
[CFF2Index] Make even faster
...
Load offsets on-demand as well.
2024-05-22 18:45:28 -06:00
Behdad Esfahbod
feb6820d03
[_LazyList] Make much faster
2024-05-22 18:45:28 -06:00
Behdad Esfahbod
450c8f1581
[CFF2Index] Make loading lazy
...
Still too slow, but much faster.
2024-05-22 18:45:28 -06:00
Behdad Esfahbod
5faf139417
[CFF2Index] Minor massage
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
c952237ed3
[otConverters] Make _LazyList generic
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
c50a0f6195
[VARC] Rename a type
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
950d39b9d3
[VARC] Finish drawing!
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
c69fd12251
[VARC] Move code around
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
4b6c574d54
[VARC] More towards drawing
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
68277fc0b5
[TupleVariation] Fix 32bit reading / writing
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
8cce745d90
[TupleVariation] Assert message
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
bcd5e4c216
Rip out glyf1 VarComposites
...
In favor of separate VARC table.
ttGlyphSet does NOT yet know how to draw VARC table though.
The 9 failing tests are all VarComposite-related and need
to be updated with VARC equivalents eventually when we
add VARC support to subsetter and instancer.
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
ec78b572c9
[MultiVarStore] Fix up XML read/write
...
Looks complete now.
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
c78ba01c80
[VarCompositeGlyph] Use two varIdxes per component
...
Seems to save space now with MultiVarStore.
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
b4d3fc54b2
[TupleVariation] Support 32bit encoding in delta-encoding
...
Uses an used combination of top two bits.
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
02c6a94529
[VARC] Use TupleVariation value encoding
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
0e9eff8990
Add MultiVarStore
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
1a1e9e198b
[VARC] Use one varIndexBase only
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
aad01a9d85
[VARC] Towards XML
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
ef6903e097
[VARC] Start
...
Based on https://github.com/harfbuzz/boring-expansion-spec/issues/103#issuecomment-1856325577
2024-05-22 18:45:27 -06:00
Simon Cozens
9acbd12637
Better failure mode for sstruct ( #3500 )
...
* Check format fits and give sensible error if not
* sstruct.getformat now returns dictionaries, merge them
2024-05-07 14:01:46 +01:00
Behdad Esfahbod
ed092f2552
[avar] Raise exception instead of assert
2024-04-03 07:55:04 -06:00
Behdad Esfahbod
6e0acc9e4b
Add a couple of __getitem__'s
2024-04-02 10:38:36 -06:00
Behdad Esfahbod
bf6ff3b514
[avar] Add support for mapping avar2
...
Untested.
2024-04-02 10:23:09 -06:00
Behdad Esfahbod
781dda70de
[ttFont] Move some code into fvar and avar modules
2024-04-02 10:23:09 -06:00
Simon Cozens
430e364db7
Compile aux fields
2024-03-19 16:46:37 -06:00