Behdad Esfahbod
5a5898c824
[varLib.models] Add interpolateFromMastersAndMasterScalars()
...
Faster than the alternative way to calculate them.
2023-12-10 17:15:42 -07:00
Cosimo Lupo
a5b3305edb
[interpolatable] ensure parent directory for various output paths
...
Fixes https://github.com/fonttools/fonttools/issues/3383
2023-12-08 15:18:33 +00:00
Cosimo Lupo
dd8102673d
Merge pull request #3380 from fonttools/getMasterScalars
...
[varLib.models] Add getMasterScalars
2023-12-08 14:30:21 +00:00
Behdad Esfahbod
754762d97d
[interpolatable] Remove a couple unused lines
2023-12-07 17:03:17 -07:00
Behdad Esfahbod
ae69c22df8
[varLib.models] Document a bit
2023-12-07 13:01:48 -07:00
Behdad Esfahbod
e98cec3264
[varLib.models] Simplify getMasterScalars
...
https://github.com/fonttools/fonttools/pull/3380#issuecomment-1845983903
2023-12-07 12:52:51 -07:00
Behdad Esfahbod
85883f09bc
[varLib.models] Add getMasterScalars
2023-12-07 12:29:00 -07:00
Behdad Esfahbod
3ecbc94dcf
[interpolatable] Sort issues by tolerance as well
2023-12-07 09:15:44 -05:00
Behdad Esfahbod
141b155353
[interpolatable] Undo unintentional change
...
I'm sorry. I'll go work on a branch again.
2023-12-07 05:58:48 -07:00
Behdad Esfahbod
e1382c1094
[interpolatable] Log
2023-12-07 05:57:23 -07:00
Behdad Esfahbod
9afac79105
[lerp_recording] Make into a generator
2023-12-07 04:49:59 -07:00
Behdad Esfahbod
4f6c739181
Move LerpGlyphSet and lerp_recordings to more prominent places
...
Fixes https://github.com/fonttools/fonttools/issues/3361
2023-12-07 04:49:59 -07:00
Behdad Esfahbod
dcf3f0c4b1
[interpolatable] Simplify sorting
2023-12-07 04:14:35 -07:00
Behdad Esfahbod
930047d853
[interpolatable] Tweak sort order
...
Sort by most severe problem.
2023-12-06 13:44:06 -07:00
Behdad Esfahbod
c7d9da630a
[interpolatable] Sort "nothing" at the end of the report
2023-12-06 13:25:28 -07:00
Behdad Esfahbod
1a36194179
[interpolatable] Sort problems by severity
2023-12-06 12:47:06 -07:00
Behdad Esfahbod
8ad3bb53b7
[interpolatable] Add InterpolatableProblem
2023-12-06 12:38:32 -07:00
Behdad Esfahbod
aceaf10b78
[interpolatableTestStartingPoint] Remove unneeded code
2023-12-06 09:03:40 -07:00
Behdad Esfahbod
d88292b742
Revert "[interpolatableTestStartingPoint] Try to rationalize the extended case"
...
This reverts commit b950447e491ddf1e1a739d06711755db01ad5e4e.
2023-12-06 09:03:40 -07:00
Behdad Esfahbod
90a84d25ca
[interpolatableTestStartingPoint] Try to rationalize the extended case
...
Breaks all kinds of things. Going to revert. I have no idea why
the existing code works so well but any touching it to make it more
reasonable regresses the results :(.
2023-12-06 09:03:40 -07:00
Behdad Esfahbod
8728789c05
[instancer] Don't produce triples outside <-1,0,+1>
...
Fixes https://github.com/fonttools/fonttools/issues/3350
2023-12-06 10:22:11 -05:00
Behdad Esfahbod
1130fd799f
[interpolatable] Black
2023-12-03 20:25:35 -05:00
Behdad Esfahbod
44300a8c3f
[interpolatable] Always do weight check even if start points differ
...
Makes the output busier but I think it's good.
2023-12-03 16:51:00 -05:00
Behdad Esfahbod
ef90c377d1
[interpolatable] Minor tweak
2023-12-02 08:31:39 -05:00
Behdad Esfahbod
2e764bf179
[interpolatable] Move code around
2023-12-02 08:17:50 -05:00
Behdad Esfahbod
96c9bd236f
[interpolatable] Move tolerance calc into the test
2023-12-02 07:49:52 -05:00
Cosimo Lupo
6e14cda66a
Merge pull request #3363 from fonttools/append-fea-vars
...
[featureVars] don't overwrite FeatureVariations, append new records
2023-12-02 11:28:25 +00:00
Behdad Esfahbod
9994829fdb
Merge pull request #3364 from fonttools/interpolatable-remake
...
Interpolatable remake
2023-12-02 04:06:55 -07:00
Cosimo Lupo
6358b47682
[featureVars] don't overwrite FeatureVariations, append new records
...
Currently, addFeatureVariationsRaw always deletes existing GSUB.FeatureVariations and overwrites them with the newly built records.
It doesn't have to, though. If the features for which we are adding feature variations are not already "variable", we can simply append the DS-rules-generated records to the FeatureVariations.
We raise an error if the existing FeatureVariations already reference the same feature tags used for the DS rules, as that could generate ambiguity/undefined logic.
2023-12-02 10:10:41 +00:00
Behdad Esfahbod
0db0b355ba
Fixup
2023-12-01 23:41:25 -05:00
Behdad Esfahbod
e22584785c
Another try
2023-12-01 23:27:05 -05:00
Behdad Esfahbod
aa73b6b4d3
Fixup
2023-12-01 23:09:13 -05:00
Behdad Esfahbod
1243f97cc7
Another try
2023-12-01 22:46:54 -05:00
Behdad Esfahbod
cc8cb0e1ee
Revert "[interpolatable] Fixup"
...
This reverts commit 8c505452aac18d4dba467746170f896c683d7773.
2023-12-01 22:45:27 -05:00
Behdad Esfahbod
8c505452aa
[interpolatable] Fixup
2023-12-01 19:05:59 -05:00
Behdad Esfahbod
2dc53dbc4d
[interpolatable] Fixup
2023-12-01 18:32:32 -05:00
Behdad Esfahbod
ee0936a781
[interpolatable] Fixup
2023-12-01 18:15:02 -05:00
Behdad Esfahbod
b8554fdad5
[interpolatablePlot] Draw \o/ if nothing wrong
...
In --show-all mostly
2023-12-01 18:00:14 -05:00
Cosimo Lupo
82021732ae
[featureVars] expose method to addGSUBFeatureVariations to existing VF
...
Fixes https://github.com/fonttools/fonttools/issues/3357
2023-12-01 18:54:15 +00:00
Cosimo Lupo
a2f6f2ffed
[featureVars] allow to assign same subst lookup to several feature tags
...
this can be useful to maximise layout engine compatibility or simply to have same feature variations substitutions be accessible via mutliple feature tags for whatever reason.
Fixes https://github.com/fonttools/fonttools/issues/2050
Fixes https://github.com/fonttools/fonttools/issues/3004
2023-12-01 16:53:31 +00:00
Cosimo Lupo
ee3d7c8f80
black
2023-12-01 16:20:50 +00:00
Behdad Esfahbod
5847d394fc
[interpolatable] Fixup
2023-12-01 00:21:23 -05:00
Behdad Esfahbod
4764cb52af
[interpolatable] Fixup
2023-12-01 00:18:12 -05:00
Behdad Esfahbod
97d571cd66
[interpolatable] Fixup
2023-12-01 00:14:15 -05:00
Behdad Esfahbod
8000927cbe
[interpolatable] Move another test to its own file
2023-11-30 23:59:40 -05:00
Behdad Esfahbod
7636a2ebde
[interpolatable] Fixup
2023-11-30 23:41:30 -05:00
Behdad Esfahbod
a97853871e
[interpolatable] Refactor one test
2023-11-30 23:39:46 -05:00
Behdad Esfahbod
c984acc070
[interpolatable] Don't continue test if open contours
2023-11-30 23:29:37 -05:00
Behdad Esfahbod
7993bad2c4
[interpolatable] Add a Glyph class
2023-11-30 23:26:25 -05:00
Behdad Esfahbod
67a8706ed4
[interpolatable] Move some code into a helper file
2023-11-30 17:06:22 -05:00