Skip to content

Commit

Permalink
Merge pull request #1735 from googlefonts/issue-1734
Browse files Browse the repository at this point in the history
Ensure sources have a location property
  • Loading branch information
justvanrossum authored Oct 18, 2024
2 parents 562ae94 + bf91804 commit 0b0be86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/fontra/client/core/font-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,7 @@ function ensureDenseSources(sources) {
return mapObjectValues(sources, (source) => {
return {
...source,
location: source.location || {},
lineMetricsHorizontalLayout: mapObjectValues(
source.lineMetricsHorizontalLayout || {},
(metric) => {
Expand Down

0 comments on commit 0b0be86

Please sign in to comment.