1585 Commits

Author SHA1 Message Date
Behdad Esfahbod
e724acd41e [instancer] Raise NotImplementedError if avar2 VarStore present 2024-04-15 08:21:14 -06:00
Behdad Esfahbod
6a2a204cc3 [interpolatable] Support avar2 in the .ttf codepath 2024-04-02 13:20:19 -06:00
Cosimo Lupo
345d6b2f81 [instancer] drop explicit no-op axes from tuplevariations
Fixes #3453
2024-03-04 15:25:48 +00:00
Khaled Hosny
cf08265cd5 Black 2024-02-06 15:47:35 +02:00
Behdad Esfahbod
16991a8cd2 [varLib] Remove unused code 2024-01-26 12:20:34 -08:00
Qunxin Liu
3e548ff29c fix bug in instancer iup optimization
pass in correct value to tolerance
2024-01-25 16:18:24 -08:00
Cosimo Lupo
701b06f3c6
[varLib]: do not log when there are no OTL tables to be merged 2024-01-11 12:00:08 +00:00
خالد حسني (Khaled Hosny)
1c25210360
[featureVars] Re-use FeatureVariationRecord's when possible
If a FeatureVariationRecord with the same ConditionTable exists re-use
it and append FeatureTableSubstitutionRecord’s.

Without this, in the following feature code only the first lookup will
be applied since there will be two FeatureVariationRecord with the same
ConditionTable, so the first will be matched and the other will be
skipped:

    conditionset test {
        wght 600 1000;
        wdth 150 200;
    } test;

    variation ccmp test {
        sub e by a;
    } ccmp;

    variation rlig test {
        sub b by c;
    } rlig;

With this change only one FeatureVariationRecord will be created with
two FeatureTableSubstitutionRecord’s.
2024-01-10 19:06:26 +02:00
Behdad Esfahbod
62d54b03d3 [interpolatable] Remove unused code 2024-01-04 09:30:33 -07:00
Behdad Esfahbod
348774af36 [interpolatable] Disable overweight again
It mostly produces false-positives still.
2024-01-03 16:23:17 -07:00
Behdad Esfahbod
03c0d78489 [interpolatable] Enable overweight test
Very conservative.
2024-01-03 15:56:52 -07:00
Behdad Esfahbod
71f7515ef5 [interpolatable] Speed up by removing unused data 2023-12-14 11:04:23 -07:00
Behdad Esfahbod
7fc14d81fa [interpolatablePlot] Reformat
Mostly resize to fit Letter paper size, and misc adjustments.
2023-12-14 10:22:15 -07:00
Behdad Esfahbod
0906c75dc1 [interpolatable] Rename variable 2023-12-14 10:20:32 -07:00
Behdad Esfahbod
7980707fe2 [interpolatable] Add Summary page to the front 2023-12-14 10:19:39 -07:00
Behdad Esfahbod
a5c056e088 [interpolatablePlot] Add Summary to PS/PDF output 2023-12-14 10:19:39 -07:00
Behdad Esfahbod
ff7d51b395 [interpolatablePlot] Add Index by glyphname 2023-12-14 10:19:39 -07:00
Behdad Esfahbod
f43cac5c57 [interpolatablePlot] Add table-of-contents at the end of PS/PDF 2023-12-14 10:19:39 -07:00
Behdad Esfahbod
c13463b6da [interpolatable] Merge PS/PDF code path 2023-12-14 10:19:39 -07:00
Behdad Esfahbod
aad3707227 [interpolatable] Minor simplify
https://github.com/fonttools/fonttools/pull/3391#pullrequestreview-1782022118
2023-12-14 08:20:52 -07:00
Behdad Esfahbod
a8f10ac4f2 [interpolatable] Support .glyphspackage
Fixes https://github.com/fonttools/fonttools/issues/3390

Untested.
2023-12-14 09:05:40 -05:00
Behdad Esfahbod
33d8b4633c [interpolatable] Fix typo 2023-12-13 19:19:31 -07:00
Behdad Esfahbod
0c5cb3b0ca
Merge pull request #3386 from fonttools/interpolate-from-master-scalars
[varLib.models] Add interpolateFromValuesAndScalars()
2023-12-12 06:44:12 -05:00
Behdad Esfahbod
36e2c6dcd3 [varLib.models] Simplify based on review 2023-12-12 04:39:05 -07:00
Behdad Esfahbod
86b2bf62e6 [varLib.models] Change interpolateFromMasters implementation 2023-12-11 18:55:54 -07:00
Behdad Esfahbod
381b55b936 [varLib.models] Refactor common logic 2023-12-11 18:54:16 -07:00
Just van Rossum
4826f9b016
Fix help string for AXIS=LOC 2023-12-11 15:59:30 +01:00
Behdad Esfahbod
455fc87081 [varLib.merger] Use new API for faster interpolation in Instancer 2023-12-10 18:40:48 -07:00
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