Cosimo Lupo
dfeacfba36
[varLib.models] minor
...
We need to use float (0.) rather than int (0) for the normalized axis
origin, otherwise some varLib roundtrip tests may fail.
E.g.
```diff
<tuple>
- <coord axis="wght" max="1.0" min="0.0" value="0.61"/>
+ <coord axis="wght" max="1.0" min="0" value="0.61"/>
```
2017-08-16 16:35:57 +01:00
Behdad Esfahbod
a1629fa52b
[varLib] Update supportScalar() to allow for OpenType-specific contraints
...
Part of https://github.com/fonttools/fonttools/issues/1020
2017-08-07 17:05:29 -07:00
justvanrossum
18fa7ccec0
supportScalar(): ignore an axis when its peak value is 0; fixes #1020
2017-08-07 13:16:24 +02:00
Erik van Blokland
4762865cac
Makes it a bit easier to find out what is wrong with the values.
2017-08-05 20:37:37 +02:00
Behdad Esfahbod
dbc54a2429
[varLib.models] Mark VariationModel.interpolateFromDeltasAndScalars static
...
This correctly reflects that all we need to interpolate is deltas and
scalars.
2017-05-23 01:01:07 -07:00
Behdad Esfahbod
39d059ef08
Revert "[varLib.models] Minor"
...
This reverts commit 49df768cd3d1dd2c39933e3c07d214013d50ef60.
That was accidentally pushed!
2017-05-23 00:54:23 -07:00
Behdad Esfahbod
bc546dec10
[varLib.models] Add VariationModel.interpolateFromMastersAndScalars()
2017-05-23 00:54:11 -07:00
Behdad Esfahbod
53b7ea4612
[varLib.models] Add VariationModel.interpolateFromDeltasAndScalars()
2017-05-23 00:54:11 -07:00
Behdad Esfahbod
489c80c83b
[varLib.models] Add VariationModel.getScalars()
...
To factor out scalar computation out of each interpolation.
2017-05-23 00:54:11 -07:00
Behdad Esfahbod
adc4fe960e
[varLib.models] Remove unused line
2017-05-23 00:54:11 -07:00
Behdad Esfahbod
fdbe93e33c
[varLib.models] Minor; move computing scalars out of inner loop
2017-05-23 00:54:11 -07:00
Behdad Esfahbod
49df768cd3
[varLib.models] Minor
2017-05-23 00:31:48 -07:00
Behdad Esfahbod
a08fb27f17
[varLib.models] Minor
2017-05-23 00:26:53 -07:00
Behdad Esfahbod
968c25dd7f
[varLib] Generate avar table
...
Fixes https://github.com/fonttools/fonttools/issues/916
2017-04-12 21:54:43 -07:00
justvanrossum
289fd62d8f
added assert, as suggested by @behdad in #749
2016-12-02 14:24:46 +01:00
justvanrossum
e5d2d49900
two more doctests
2016-11-29 14:42:20 +01:00
justvanrossum
8fa2ee1d95
Do the capping before calculating the normalized value to avoid ZeroDivisionError when default == lower or default == upper. Added doctests to verify. Fixes #749
2016-11-29 14:38:46 +01:00
Behdad Esfahbod
9ed319d0ad
[varLib] Clamp values in normalizeLocation()
2016-09-27 19:49:41 +02:00
Behdad Esfahbod
d9ee2609be
[varLib] Move VariationModel and supporting code to fontTools.varLib.models
...
More code to be moved there in the future.
2016-09-27 19:49:41 +02:00