Skip to content

Commit

Permalink
Fix an ERROR caused by a list IndexError.
Browse files Browse the repository at this point in the history
EXPERIMENTAL com.google.fonts/check/varfont/instances_in_order
On the Google Fonts profile

(issue #4626)
  • Loading branch information
felipesanches committed Apr 4, 2024
1 parent 3e56b48 commit 17a4a40
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ A more detailed list of changes is available in the corresponding milestones for
- v0.12.0a3 (2024-Mar-13)
- v0.12.0a4 (2024-Mar-15)
- v0.12.0a5 (2024-Apr-02)
- v0.12.0a6 (2024-Apr-04)


## 0.12.0a6 (2024-Apr-04)
### Changes to existing checks
#### On the Google Fonts profile
- **EXPERIMENTAL [com.google.fonts/check/varfont/instances_in_order]:** Fix an ERROR caused by a list IndexError (issue #4626)


## 0.12.0a5 (2024-Apr-02)
Expand Down
2 changes: 1 addition & 1 deletion Lib/fontbakery/checks/googlefonts/varfont.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ def com_google_fonts_check_varfont_instances_in_order(ttFont, config):
# Partition into sub-lists based on the other axes values.
# e.g. "Thin Regular", "Bold Regular", "Thin Condensed", "Bold Condensed"
# becomes [ ["Thin Regular", "Bold Regular"], ["Thin Condensed", "Bold Condensed"] ]
sublists = []
sublists = [[]]
last_non_wght = {}
for coord in coords:
non_wght = {k: v for k, v in coord.items() if k != "wght"}
Expand Down

0 comments on commit 17a4a40

Please sign in to comment.