Behdad Esfahbod
|
407fd13554
|
[instancer] No need to check for scalar=0 here; solver does
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
4d65c6c2a2
|
[instancer.solver] Cache results
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
f2ebccd468
|
[instancer.solver] Add tests
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
5a2836d97b
|
[instancer.solver] Fix tag
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
4b4f65dda6
|
[instancer] Fix fvar axis default value
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
1ed0f8a655
|
[instancer.solver] Remove special-cases
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
7f149f2617
|
[instancer.solver] Fix up, also route pinned through general
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
16d7e335e4
|
[instancer.solver] Write out rest of general-case solver
Untested.
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
bf55b28c50
|
[instancer.solver] Implement no-gain in the general solution
This can replace the DefaultUnmoved
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
e94f564149
|
[instancer.solver] Start fleshing out L4
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
eef320e974
|
[instancer] Err, fixups
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
89dffd51ca
|
[instancer] Make some tests pass
The rest of the test suite needs drastic updates :(.
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
ac05ed19bb
|
[instancer] Fix code move
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
d611c1519e
|
[instancer] Add assertion
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
8ca0dab0c0
|
[instancer.solver] Simplify solver
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
32be0d46ec
|
[instancer.solver] Massage a bit
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
92c67c2e22
|
[instancer] Add infrastructure for L4 instancing
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
af9ab41d21
|
[instancer] Move solving code into instancer.solver module
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
7856a5cc46
|
[instancer] Merge pinTupleVariationAxes and limitTupleVariationAxisRanges
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
a8943d99c9
|
[instancer] Add an assert
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
d0e4758d3c
|
[instancer] Minor
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
fc14158cfd
|
[instancer] Fix setting default WWS for recent changes
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
6752d07c98
|
[instancer] Parse and percolate triples for axis values
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
eae0613a82
|
[instancer] Carry pinned locations as ranges of (value,value) in axisLimits
Towards L4 instancing.
|
2022-10-13 10:35:02 -06:00 |
|
Behdad Esfahbod
|
fdaea7a1d8
|
[instancer] Avoid unnecessary scaling
|
2022-10-13 10:35:02 -06:00 |
|
Cosimo Lupo
|
f66ee05f71
|
Merge pull request #2847 from fonttools/extrapolate-normalize
Allow extrapolation in normalization
|
2022-10-13 16:25:42 +01:00 |
|
Simon Cozens
|
4d21550052
|
Allow extrapolation in normalization
|
2022-10-13 12:34:59 +01:00 |
|
Just van Rossum
|
668b8d094b
|
Fallback should be value, not 0
|
2022-10-13 12:54:19 +02:00 |
|
Just van Rossum
|
a91e4d3595
|
An omitted axis in a location implies a value of 0 -- we need to records that value
|
2022-10-13 12:48:59 +02:00 |
|
Just van Rossum
|
b073fb8f6f
|
Demand axisRanges is given when extrapolate is True
|
2022-10-13 12:27:46 +02:00 |
|
Just van Rossum
|
e02e9dc295
|
Drop -1,+1 fallback and require the axisRanges dict to be complete
|
2022-10-13 09:07:59 +02:00 |
|
Just van Rossum
|
8e527d3b84
|
adjust doctests and doc strings
|
2022-10-13 08:54:28 +02:00 |
|
Just van Rossum
|
4ef44bfbd1
|
formatting
|
2022-10-13 08:42:37 +02:00 |
|
Just van Rossum
|
053cba3626
|
use value as default instead of 0
|
2022-10-12 16:48:13 +02:00 |
|
Just van Rossum
|
115874cb05
|
Always ssign axisValues attr
|
2022-10-12 16:41:50 +02:00 |
|
Just van Rossum
|
f368dcb4dd
|
Attempt to fix #2843 by computing the axis ranges for interpolation
|
2022-10-12 16:29:14 +02:00 |
|
Behdad Esfahbod
|
4742960f7f
|
[varLib.cff] Don't round deltas
Fixes https://github.com/fonttools/fonttools/issues/2838
|
2022-10-04 14:12:01 -06:00 |
|
Just van Rossum
|
a2eef358be
|
[instancer] Minor touch-up of #2828
|
2022-09-20 17:36:43 +02:00 |
|
Just van Rossum
|
c7ea667215
|
[intancer] Add stat.ElidedFallbackNameID to the set of used name IDs, to avoid it being pruned. Fixes #2822
|
2022-09-20 17:21:26 +02:00 |
|
Guillaume Ayoub
|
fd0e81ad13
|
Avoid negative hmtx values when creating font from variable font
Fix #2821.
|
2022-09-20 16:27:54 +02:00 |
|
Cosimo Lupo
|
87bbb64061
|
[instancer] downgrade GSUB/GPOS version if there are no FeatureVariations after instancing
same as https://github.com/fonttools/fonttools/pull/2811 but moved the logic to _instantiateFeatureVariations directly, instead of after it
|
2022-09-13 10:44:26 +01:00 |
|
Cosimo Lupo
|
e4b3394a38
|
[varLib] omit optional COLR.VarIndexMap for identity mapping
Fixes #2800
|
2022-09-05 17:18:29 +01:00 |
|
Behdad Esfahbod
|
c04afbedaf
|
[varLib.interpolatable] Fix naming of varfont masters
|
2022-08-29 17:08:30 -06:00 |
|
Behdad Esfahbod
|
250cec869e
|
[interpolatable] Compare all masters to first master
Reduces number of errors reported.
|
2022-08-29 17:03:11 -06:00 |
|
Behdad Esfahbod
|
a7cda37fbb
|
[ttVarGlyphSet] Support CFF
|
2022-08-26 20:52:18 -06:00 |
|
Behdad Esfahbod
|
9cb418cbfc
|
[varLib.plot] Add plotModelFromMasters
|
2022-08-26 11:17:26 -06:00 |
|
Behdad Esfahbod
|
2d5a3576d1
|
[varLib.interpolatable] Report index of contour in error message
|
2022-08-25 14:15:58 -06:00 |
|
Cosimo Lupo
|
f5933c1cfa
|
Revert "[varLib.models] Generate narrower tents"
This reverts commit 688939394b8cae3b2a0d5747e435cbd828a14531.
|
2022-08-23 17:20:57 +01:00 |
|
Behdad Esfahbod
|
5284ac3c58
|
[varLib.models] Update docstring
|
2022-08-23 09:56:33 -06:00 |
|
Behdad Esfahbod
|
bad70c68ef
|
[varLib] Support extrapolation
Fixes https://github.com/fonttools/fonttools/issues/1252
|
2022-08-23 09:56:33 -06:00 |
|