python-fontbro 0.26.0__tar.gz → 0.26.1__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.26.0/python_fontbro.egg-info → python_fontbro-0.26.1}/PKG-INFO +1 -1
  2. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/font.py +3 -2
  3. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/metadata.py +1 -1
  4. {python_fontbro-0.26.0 → python_fontbro-0.26.1/python_fontbro.egg-info}/PKG-INFO +1 -1
  5. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_str.py +2 -2
  6. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/LICENSE.txt +0 -0
  7. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/MANIFEST.in +0 -0
  8. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/README.md +0 -0
  9. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/__init__.py +0 -0
  10. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/data/family-classifications.json +0 -0
  11. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/data/features.json +0 -0
  12. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/data/unicode-blocks.json +0 -0
  13. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/data/unicode-scripts.json +0 -0
  14. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/exceptions.py +0 -0
  15. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/flags.py +0 -0
  16. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/math.py +0 -0
  17. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/py.typed +0 -0
  18. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/subset.py +0 -0
  19. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/utils.py +0 -0
  20. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/pyproject.toml +0 -0
  21. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/python_fontbro.egg-info/SOURCES.txt +0 -0
  22. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/python_fontbro.egg-info/dependency_links.txt +0 -0
  23. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/python_fontbro.egg-info/requires.txt +0 -0
  24. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/python_fontbro.egg-info/top_level.txt +0 -0
  25. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/setup.cfg +0 -0
  26. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/setup.py +0 -0
  27. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_characters.py +0 -0
  28. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_clone.py +0 -0
  29. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_close.py +0 -0
  30. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_collection.py +0 -0
  31. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_color.py +0 -0
  32. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_context_manager.py +0 -0
  33. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_family_classification.py +0 -0
  34. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_family_name.py +0 -0
  35. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_features.py +0 -0
  36. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_filename.py +0 -0
  37. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_fingerprint.py +0 -0
  38. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_format.py +0 -0
  39. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_glyphs.py +0 -0
  40. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_image.py +0 -0
  41. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_init.py +0 -0
  42. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_instantiation.py +0 -0
  43. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_issues.py +0 -0
  44. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_italic_angle.py +0 -0
  45. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_monospace.py +0 -0
  46. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_names.py +0 -0
  47. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_rename.py +0 -0
  48. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_sanitize.py +0 -0
  49. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_save.py +0 -0
  50. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_style_flags.py +0 -0
  51. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_style_name.py +0 -0
  52. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_subset.py +0 -0
  53. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_svg.py +0 -0
  54. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_unicode_blocks_and_scripts.py +0 -0
  55. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_update_unicode_data.py +0 -0
  56. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_variable.py +0 -0
  57. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_version.py +0 -0
  58. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_vertical_metrics.py +0 -0
  59. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_weight.py +0 -0
  60. {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_width.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-fontbro
3
- Version: 0.26.0
3
+ Version: 0.26.1
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>
@@ -8,7 +8,6 @@ import sys
8
8
  import tempfile
9
9
  from collections import Counter
10
10
  from collections.abc import Generator
11
- from curses import ascii
12
11
  from io import BytesIO
13
12
  from pathlib import Path
14
13
  from typing import IO, Any, cast
@@ -550,7 +549,9 @@ class Font:
550
549
  char = chr(code)
551
550
  else:
552
551
  continue
553
- if ascii.iscntrl(char):
552
+ # check if is control character
553
+ char_code = ord(char)
554
+ if char_code < 0x20 or char_code == 0x7F:
554
555
  continue
555
556
  if glyfs and ignore_blank:
556
557
  glyf = glyfs.get(char_name)
@@ -4,4 +4,4 @@ __description__ = "friendly font operations on top of fontTools."
4
4
  __email__ = "fabio.caccamo@gmail.com"
5
5
  __license__ = "MIT"
6
6
  __title__ = "python-fontbro"
7
- __version__ = "0.26.0"
7
+ __version__ = "0.26.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-fontbro
3
- Version: 0.26.0
3
+ Version: 0.26.1
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>
@@ -10,5 +10,5 @@ class StrTestCase(AbstractTestCase):
10
10
  filepath = "/Roboto_Mono/static/RobotoMono-Regular.ttf"
11
11
  font = self._get_font(filepath)
12
12
  s = str(font)
13
- self.assertTrue(s.startswith("Font('"))
14
- self.assertTrue(s.endswith(filepath + "')"))
13
+ expected = f"Font('{font._filepath}')"
14
+ self.assertEqual(s, expected)