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.
- {python_fontbro-0.23.0/python_fontbro.egg-info → python_fontbro-0.23.1}/PKG-INFO +1 -1
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/font.py +1 -1
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/metadata.py +1 -1
- {python_fontbro-0.23.0 → python_fontbro-0.23.1/python_fontbro.egg-info}/PKG-INFO +1 -1
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_sanitize.py +3 -2
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/LICENSE.txt +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/MANIFEST.in +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/README.md +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/__init__.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/data/family-classifications.json +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/data/features.json +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/data/unicode-blocks.json +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/data/unicode-scripts.json +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/exceptions.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/flags.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/math.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/py.typed +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/subset.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/fontbro/utils.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/pyproject.toml +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/python_fontbro.egg-info/SOURCES.txt +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/python_fontbro.egg-info/dependency_links.txt +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/python_fontbro.egg-info/requires.txt +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/python_fontbro.egg-info/top_level.txt +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/setup.cfg +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/setup.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_characters.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_clone.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_close.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_collection.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_context_manager.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_family_classification.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_family_name.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_features.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_filename.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_fingerprint.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_format.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_glyphs.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_image.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_init.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_instantiation.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_issues.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_italic_angle.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_monospace.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_names.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_rename.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_save.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_str.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_style_flags.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_style_name.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_subset.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_unicode_blocks_and_scripts.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_update_unicode_data.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_variable.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_version.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_vertical_metrics.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_weight.py +0 -0
- {python_fontbro-0.23.0 → python_fontbro-0.23.1}/tests/test_width.py +0 -0
|
@@ -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
|
|
@@ -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=
|
|
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=
|
|
76
|
+
expected_errors_count=2, # should reduce to 0
|
|
76
77
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_fontbro-0.23.0 → python_fontbro-0.23.1}/python_fontbro.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|