Skip to content

Commit a2dc9ad

Browse files
authored
Fix test_checks_unique_glyphnames
(issue #5023)
1 parent 49dcd6a commit a2dc9ad

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
Below are the noteworthy changes from each release.
22
A more detailed list of changes is available in the corresponding milestones for each release in the Github issue tracker (https://github.com/googlefonts/fontbakery/milestones?state=closed).
33

4+
## Upcoming release: 1.0.0 (2025-Jun-??)
5+
### Bugfixes
6+
- fonttools==4.58.0 has been changed (PR #https://github.com/fonttools/fonttools/pull/3809/): It fixes duplicate names, therefore the test for the `unique_glyphnames`check was failing. (issue #5023)
47

5-
## 1.0.0 (2025-May-07)
8+
## 1.0.0 (2025-May-07)
69
- See also: https://github.com/fonttools/fontspector
710

811
### Migration of checks

tests/test_checks_unique_glyphnames.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ def test_check_unique_glyphnames(check):
2626

2727
# Load again, we changed the font directly.
2828
ttFont = TTFont(TEST_FILE("nunito/Nunito-Regular.ttf"))
29-
ttFont.setGlyphOrder(glyph_names)
3029
# Just access the data to make fonttools generate it.
3130
ttFont["post"] # pylint:disable=pointless-statement
3231
_file = io.BytesIO()
3332
_file.name = ttFont.reader.file.name
3433
ttFont.save(_file)
3534
ttFont = TTFont(_file)
35+
ttFont.setGlyphOrder(glyph_names)
3636
message = assert_results_contain(check(ttFont), FAIL, "duplicated-glyph-names")
3737
assert "space" in message
3838

0 commit comments

Comments
 (0)