Skip to content

Commit

Permalink
[pyproject.toml] Update langcodes to at least 3.4.1
Browse files Browse the repository at this point in the history
Since the Language.__hash__ method was broken, the Set never really work.
Now it does and since it doesn't have any order, it can break the family_name order, so let's simply use a list

Resolve #53
  • Loading branch information
moi15moi committed Sep 27, 2024
1 parent 5ba6d12 commit 0729992
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions font_collector/font/font_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ def get_axis_value_table_property(

# Generate family_name an fullname
for item in product(*axis_values_names):
langs: Set[Language] = set()
langs: List[Language] = []
for element in item:
langs.add(element.lang_code)
langs.append(element.lang_code)

family_name_str = " ".join([element.value for i, element in enumerate(item) if family_name_axis_value_index[i]])
fullname_str = " ".join([element.value for i, element in enumerate(item) if fullname_axis_value_index[i]])
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies = [
"fontTools>=4.38.0",
"freetype-py",
"FindSystemFontsFilename>=0.3.0",
"langcodes",
"langcodes>=3.4.1, < 4",
]
classifiers=[
"Development Status :: 5 - Production/Stable",
Expand Down

0 comments on commit 0729992

Please sign in to comment.