Skip to content

Commit

Permalink
Undo last commit: wrong branch oops
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Nov 12, 2024
1 parent 30715be commit 52e1bff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fontra/client/core/font-sources-instancer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ export class FontSourcesInstancer {
(source) => !source.isSparse
);
this.fontAxesSourceSpace = mapAxesFromUserSpaceToSourceSpace(this.fontAxes);
this.defaultSourceLocation = Object.fromEntries(
this.defaultLocation = Object.fromEntries(
this.fontAxesSourceSpace.map((axis) => [axis.name, axis.defaultValue])
);
this.sourcesByLocationString = Object.fromEntries(
this.fontSourcesList.map((source) => [
locationToString({ ...this.defaultSourceLocation, ...source.location }),
locationToString({ ...this.defaultLocation, ...source.location }),
source,
])
);
Expand Down Expand Up @@ -61,7 +61,7 @@ export class FontSourcesInstancer {
if (!this.fontSourcesList.length) {
return undefined;
}
sourceLocation = { ...this.defaultSourceLocation, ...sourceLocation };
sourceLocation = { ...this.defaultLocation, ...sourceLocation };
const locationString = locationToString(sourceLocation);

if (locationString in this.sourcesByLocationString) {
Expand Down

0 comments on commit 52e1bff

Please sign in to comment.