python-fontbro 0.23.0__tar.gz → 0.23.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 (58) hide show
  1. {python_fontbro-0.23.0/python_fontbro.egg-info → python_fontbro-0.23.1}/PKG-INFO +1 -1
  2. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/font.py +1 -1
  3. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/metadata.py +1 -1
  4. {python_fontbro-0.23.0 → python_fontbro-0.23.1/python_fontbro.egg-info}/PKG-INFO +1 -1
  5. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_sanitize.py +3 -2
  6. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/LICENSE.txt +0 -0
  7. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/MANIFEST.in +0 -0
  8. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/README.md +0 -0
  9. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/__init__.py +0 -0
  10. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/data/family-classifications.json +0 -0
  11. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/data/features.json +0 -0
  12. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/data/unicode-blocks.json +0 -0
  13. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/data/unicode-scripts.json +0 -0
  14. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/exceptions.py +0 -0
  15. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/flags.py +0 -0
  16. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/math.py +0 -0
  17. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/py.typed +0 -0
  18. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/subset.py +0 -0
  19. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/utils.py +0 -0
  20. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/pyproject.toml +0 -0
  21. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/python_fontbro.egg-info/SOURCES.txt +0 -0
  22. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/python_fontbro.egg-info/dependency_links.txt +0 -0
  23. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/python_fontbro.egg-info/requires.txt +0 -0
  24. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/python_fontbro.egg-info/top_level.txt +0 -0
  25. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/setup.cfg +0 -0
  26. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/setup.py +0 -0
  27. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_characters.py +0 -0
  28. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_clone.py +0 -0
  29. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_close.py +0 -0
  30. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_collection.py +0 -0
  31. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_context_manager.py +0 -0
  32. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_family_classification.py +0 -0
  33. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_family_name.py +0 -0
  34. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_features.py +0 -0
  35. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_filename.py +0 -0
  36. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_fingerprint.py +0 -0
  37. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_format.py +0 -0
  38. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_glyphs.py +0 -0
  39. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_image.py +0 -0
  40. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_init.py +0 -0
  41. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_instantiation.py +0 -0
  42. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_issues.py +0 -0
  43. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_italic_angle.py +0 -0
  44. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_monospace.py +0 -0
  45. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_names.py +0 -0
  46. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_rename.py +0 -0
  47. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_save.py +0 -0
  48. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_str.py +0 -0
  49. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_style_flags.py +0 -0
  50. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_style_name.py +0 -0
  51. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_subset.py +0 -0
  52. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_unicode_blocks_and_scripts.py +0 -0
  53. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_update_unicode_data.py +0 -0
  54. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_variable.py +0 -0
  55. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_version.py +0 -0
  56. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_vertical_metrics.py +0 -0
  57. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_weight.py +0 -0
  58. {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_width.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-fontbro
3
- Version: 0.23.0
3
+ Version: 0.23.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>
@@ -812,7 +812,7 @@ class Font:
812
812
  format_ = ""
813
813
  if flavor in [self.FORMAT_WOFF, self.FORMAT_WOFF2] and not ignore_flavor:
814
814
  format_ = str(flavor)
815
- elif version == "OTTO" and "CFF " in font:
815
+ elif version == "OTTO" and ("CFF " in font or "CFF2" in font):
816
816
  format_ = self.FORMAT_OTF
817
817
  elif version == "\0\1\0\0":
818
818
  format_ = self.FORMAT_TTF
@@ -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.23.0"
7
+ __version__ = "0.23.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-fontbro
3
- Version: 0.23.0
3
+ Version: 0.23.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>
@@ -24,6 +24,7 @@ class SanitizeTestCase(AbstractTestCase):
24
24
  try:
25
25
  font = Font(font_file)
26
26
  except Exception:
27
+ # there are some ttc files
27
28
  continue
28
29
  try:
29
30
  font.sanitize(strict=strict)
@@ -64,7 +65,7 @@ class SanitizeTestCase(AbstractTestCase):
64
65
  self._test_sanitize(
65
66
  "fonts-ots/good",
66
67
  strict=False,
67
- expected_errors_count=10,
68
+ expected_errors_count=2, # should reduce to 0
68
69
  )
69
70
 
70
71
  def test_sanitize_strict_with_good_fonts(self):
@@ -72,5 +73,5 @@ class SanitizeTestCase(AbstractTestCase):
72
73
  self._test_sanitize(
73
74
  "fonts-ots/good",
74
75
  strict=True,
75
- expected_errors_count=10,
76
+ expected_errors_count=2, # should reduce to 0
76
77
  )