Behdad Esfahbod
d801056100
[varLib] Allow merging of class-based kerning when ClassDef1's are different
...
This should allow building varfonts for a whole class of font sources
that failed so far.
2017-02-08 14:29:02 -08:00
Behdad Esfahbod
9544a538ee
[varLib] Minor rename in prep for ClassDef1 merging
2017-02-08 14:14:08 -08:00
Behdad Esfahbod
dc07fe4f8f
[varLib] Allow merging of class-based kerning when ClassDef2's are different
...
With this, we can build varfont for NotoSansThai and a couple more.
This is the first use of fontTools.misc.classifyTools module.
2017-02-07 16:09:14 -08:00
Behdad Esfahbod
ef0eb9dc8f
[varLib] Move code around
2017-02-05 18:52:27 -08:00
Behdad Esfahbod
b5c34ceb15
[varLib] Fix building variation of PairPosFormat2
...
I broke this with a738464f775c190bf70e26d0a32ff2344ec43201
Ouch!
2017-02-05 18:48:15 -08:00
Cosimo Lupo
3717dc6549
[varLib.merger] set initializer for reduce() to handle empty sequences; import reduce from functools for py3
...
When reduce() receives an empty sequence, it raises TypeError, unless it is given a third 'initializer' argument
ValueFormat values should default to 0, so we shall use that as initializer.
Also, the reduce() built-in is no longer available on Python 3.
It's still accessible for both py2 and py3 from functools.
Fixes https://github.com/googlei18n/fontmake/issues/241
2017-01-30 16:51:41 +00:00
Behdad Esfahbod
a738464f77
[varLib] Let VariationMerger use AligningMerger for PairPos
...
VariationMerger now has all the intelligence of AligningMerge.
Should be good for a while...
2017-01-25 23:34:28 -08:00
Behdad Esfahbod
dd6fb82d66
[varLib] Move common code into a parent merger
2017-01-25 20:43:00 -08:00
Behdad Esfahbod
fece08bc32
[varLib] Enable subclassing of mergers
...
Theoretically diamond shapes and mixins should work as well.
2017-01-25 20:39:21 -08:00
Behdad Esfahbod
a34a7c906e
[varLib] Towards making subclassed mergers working
2017-01-25 20:30:44 -08:00
Behdad Esfahbod
5e1be9e5e7
[varLib] Move code around
2017-01-25 20:11:35 -08:00
Behdad Esfahbod
2532fac11f
[varLib] Improve assert fail breadcrumbs
2017-01-25 19:00:08 -08:00
Behdad Esfahbod
7915a45ddf
[varLib] Handle fonts without GPOS
...
Fixes https://github.com/fonttools/fonttools/issues/699
2016-11-08 15:44:39 -08:00
Behdad Esfahbod
b563e6673c
[varLib] Implement GPOS binary interpolation for PairPosFormat1
2016-10-22 22:47:18 +02:00
Behdad Esfahbod
b39772b256
[varLib] Fix interpolate_layout for non-similar SinglePos
...
Has to be ported to varfont merger as well.
2016-10-12 16:11:20 -07:00
Behdad Esfahbod
12d4f277d7
[varLib.merger] Towards supporting merging individual attributes
2016-10-11 20:39:22 -07:00
Behdad Esfahbod
b5d7eb8fd4
[varLib] Show failure path when merging fails
2016-10-05 17:03:48 -07:00
Behdad Esfahbod
9ea16fc0eb
[verLib] Add a proper Merger class in varLib.merger
2016-09-27 19:49:41 +02:00
Behdad Esfahbod
cdc6035fdf
Add varLib.merger
2016-09-27 19:49:41 +02:00