python-fontbro 0.24.0__tar.gz → 0.26.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. {python_fontbro-0.24.0/python_fontbro.egg-info → python_fontbro-0.26.0}/PKG-INFO +9 -9
  2. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/README.md +2 -3
  3. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/fontbro/data/features.json +607 -13
  4. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/fontbro/data/unicode-blocks.json +76 -0
  5. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/fontbro/data/unicode-scripts.json +71 -16
  6. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/fontbro/font.py +54 -10
  7. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/fontbro/metadata.py +1 -1
  8. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/fontbro/subset.py +1 -2
  9. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/fontbro/utils.py +3 -1
  10. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/pyproject.toml +5 -5
  11. {python_fontbro-0.24.0 → python_fontbro-0.26.0/python_fontbro.egg-info}/PKG-INFO +9 -9
  12. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/python_fontbro.egg-info/requires.txt +2 -2
  13. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_close.py +1 -1
  14. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_context_manager.py +1 -1
  15. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_family_classification.py +1 -2
  16. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_fingerprint.py +1 -1
  17. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_save.py +2 -0
  18. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_unicode_blocks_and_scripts.py +10 -10
  19. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/LICENSE.txt +0 -0
  20. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/MANIFEST.in +0 -0
  21. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/fontbro/__init__.py +0 -0
  22. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/fontbro/data/family-classifications.json +0 -0
  23. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/fontbro/exceptions.py +0 -0
  24. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/fontbro/flags.py +0 -0
  25. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/fontbro/math.py +0 -0
  26. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/fontbro/py.typed +0 -0
  27. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/python_fontbro.egg-info/SOURCES.txt +0 -0
  28. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/python_fontbro.egg-info/dependency_links.txt +0 -0
  29. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/python_fontbro.egg-info/top_level.txt +0 -0
  30. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/setup.cfg +0 -0
  31. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/setup.py +0 -0
  32. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_characters.py +0 -0
  33. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_clone.py +0 -0
  34. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_collection.py +0 -0
  35. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_color.py +0 -0
  36. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_family_name.py +0 -0
  37. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_features.py +0 -0
  38. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_filename.py +0 -0
  39. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_format.py +0 -0
  40. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_glyphs.py +0 -0
  41. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_image.py +0 -0
  42. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_init.py +0 -0
  43. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_instantiation.py +0 -0
  44. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_issues.py +0 -0
  45. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_italic_angle.py +0 -0
  46. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_monospace.py +0 -0
  47. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_names.py +0 -0
  48. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_rename.py +0 -0
  49. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_sanitize.py +0 -0
  50. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_str.py +0 -0
  51. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_style_flags.py +0 -0
  52. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_style_name.py +0 -0
  53. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_subset.py +0 -0
  54. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_svg.py +0 -0
  55. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_update_unicode_data.py +0 -0
  56. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_variable.py +0 -0
  57. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_version.py +0 -0
  58. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_vertical_metrics.py +0 -0
  59. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_weight.py +0 -0
  60. {python_fontbro-0.24.0 → python_fontbro-0.26.0}/tests/test_width.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: python-fontbro
3
- Version: 0.24.0
3
+ Version: 0.26.0
4
4
  Summary: friendly font operations on top of fontTools.
5
5
  Author-email: Fabio Caccamo <fabio.caccamo@gmail.com>
6
6
  Maintainer-email: Fabio Caccamo <fabio.caccamo@gmail.com>
@@ -43,11 +43,11 @@ Classifier: License :: OSI Approved :: MIT License
43
43
  Classifier: Natural Language :: English
44
44
  Classifier: Operating System :: OS Independent
45
45
  Classifier: Programming Language :: Python :: 3
46
- Classifier: Programming Language :: Python :: 3.8
47
- Classifier: Programming Language :: Python :: 3.9
48
46
  Classifier: Programming Language :: Python :: 3.10
49
47
  Classifier: Programming Language :: Python :: 3.11
50
48
  Classifier: Programming Language :: Python :: 3.12
49
+ Classifier: Programming Language :: Python :: 3.13
50
+ Classifier: Programming Language :: Python :: 3.14
51
51
  Classifier: Programming Language :: Python :: Implementation :: PyPy
52
52
  Classifier: Topic :: Text Processing :: Fonts
53
53
  Classifier: Topic :: Multimedia :: Graphics
@@ -57,8 +57,9 @@ License-File: LICENSE.txt
57
57
  Requires-Dist: fonttools[lxml,pathops,unicode,woff]<5.0,>=4.43.0
58
58
  Requires-Dist: imagehash<5.0.0,>=4.2.1
59
59
  Requires-Dist: opentype-sanitizer<10.0.0,>=9.1.0
60
- Requires-Dist: pillow<11.0.0,>=8.4.0
61
- Requires-Dist: python-fsutil<1.0.0,>=0.9.3
60
+ Requires-Dist: pillow<13.0.0,>=8.4.0
61
+ Requires-Dist: python-fsutil<1.0.0,>=0.16.0
62
+ Dynamic: license-file
62
63
 
63
64
  [![](https://img.shields.io/pypi/pyversions/python-fontbro.svg?color=blue&logo=python&logoColor=white)](https://www.python.org/)
64
65
  [![](https://img.shields.io/pypi/v/python-fontbro.svg?color=blue&logo=pypi&logoColor=white)](https://pypi.org/project/python-fontbro/)
@@ -70,7 +71,6 @@ Requires-Dist: python-fsutil<1.0.0,>=0.9.3
70
71
  [![](https://img.shields.io/github/actions/workflow/status/fabiocaccamo/python-fontbro/test-package.yml?branch=main&label=build&logo=github)](https://github.com/fabiocaccamo/python-fontbro)
71
72
  [![](https://img.shields.io/codecov/c/gh/fabiocaccamo/python-fontbro?logo=codecov)](https://codecov.io/gh/fabiocaccamo/python-fontbro)
72
73
  [![](https://img.shields.io/codacy/grade/dd3a046db4b14b988a2f1fcfbfaa51eb?logo=codacy)](https://www.codacy.com/app/fabiocaccamo/python-fontbro)
73
- [![](https://img.shields.io/codeclimate/maintainability/fabiocaccamo/python-fontbro?logo=code-climate)](https://codeclimate.com/github/fabiocaccamo/python-fontbro/)
74
74
  [![](https://img.shields.io/badge/code%20style-black-000000.svg?logo=python&logoColor=black)](https://github.com/psf/black)
75
75
  [![](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
76
76
 
@@ -683,7 +683,7 @@ Determines if the font is a monospace font.
683
683
  :returns: True if monospace font, False otherwise.
684
684
  :rtype: bool
685
685
  """
686
- mono = font.is_monospace()
686
+ mono = font.is_monospace(threshold=0.85)
687
687
  ```
688
688
 
689
689
  #### `is_static`
@@ -1060,7 +1060,7 @@ Special thanks to [Jérémie Hornus](https://github.com/JeremieHornus) and [Just
1060
1060
  ## Supporting
1061
1061
  - :star: Star this project on [GitHub](https://github.com/fabiocaccamo/python-fontbro)
1062
1062
  - :octocat: Follow me on [GitHub](https://github.com/fabiocaccamo)
1063
- - :blue_heart: Follow me on [Twitter](https://twitter.com/fabiocaccamo)
1063
+ - :blue_heart: Follow me on [Bluesky](https://bsky.app/profile/fabiocaccamo.bsky.social)
1064
1064
  - :moneybag: Sponsor me on [Github](https://github.com/sponsors/fabiocaccamo)
1065
1065
 
1066
1066
  ## See also
@@ -8,7 +8,6 @@
8
8
  [![](https://img.shields.io/github/actions/workflow/status/fabiocaccamo/python-fontbro/test-package.yml?branch=main&label=build&logo=github)](https://github.com/fabiocaccamo/python-fontbro)
9
9
  [![](https://img.shields.io/codecov/c/gh/fabiocaccamo/python-fontbro?logo=codecov)](https://codecov.io/gh/fabiocaccamo/python-fontbro)
10
10
  [![](https://img.shields.io/codacy/grade/dd3a046db4b14b988a2f1fcfbfaa51eb?logo=codacy)](https://www.codacy.com/app/fabiocaccamo/python-fontbro)
11
- [![](https://img.shields.io/codeclimate/maintainability/fabiocaccamo/python-fontbro?logo=code-climate)](https://codeclimate.com/github/fabiocaccamo/python-fontbro/)
12
11
  [![](https://img.shields.io/badge/code%20style-black-000000.svg?logo=python&logoColor=black)](https://github.com/psf/black)
13
12
  [![](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
14
13
 
@@ -621,7 +620,7 @@ Determines if the font is a monospace font.
621
620
  :returns: True if monospace font, False otherwise.
622
621
  :rtype: bool
623
622
  """
624
- mono = font.is_monospace()
623
+ mono = font.is_monospace(threshold=0.85)
625
624
  ```
626
625
 
627
626
  #### `is_static`
@@ -998,7 +997,7 @@ Special thanks to [Jérémie Hornus](https://github.com/JeremieHornus) and [Just
998
997
  ## Supporting
999
998
  - :star: Star this project on [GitHub](https://github.com/fabiocaccamo/python-fontbro)
1000
999
  - :octocat: Follow me on [GitHub](https://github.com/fabiocaccamo)
1001
- - :blue_heart: Follow me on [Twitter](https://twitter.com/fabiocaccamo)
1000
+ - :blue_heart: Follow me on [Bluesky](https://bsky.app/profile/fabiocaccamo.bsky.social)
1002
1001
  - :moneybag: Sponsor me on [Github](https://github.com/sponsors/fabiocaccamo)
1003
1002
 
1004
1003
  ## See also