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.
- {python_fontbro-0.26.0/python_fontbro.egg-info → python_fontbro-0.26.1}/PKG-INFO +1 -1
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/font.py +3 -2
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/metadata.py +1 -1
- {python_fontbro-0.26.0 → python_fontbro-0.26.1/python_fontbro.egg-info}/PKG-INFO +1 -1
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_str.py +2 -2
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/LICENSE.txt +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/MANIFEST.in +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/README.md +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/__init__.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/data/family-classifications.json +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/data/features.json +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/data/unicode-blocks.json +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/data/unicode-scripts.json +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/exceptions.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/flags.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/math.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/py.typed +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/subset.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/fontbro/utils.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/pyproject.toml +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/python_fontbro.egg-info/SOURCES.txt +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/python_fontbro.egg-info/dependency_links.txt +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/python_fontbro.egg-info/requires.txt +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/python_fontbro.egg-info/top_level.txt +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/setup.cfg +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/setup.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_characters.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_clone.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_close.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_collection.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_color.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_context_manager.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_family_classification.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_family_name.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_features.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_filename.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_fingerprint.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_format.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_glyphs.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_image.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_init.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_instantiation.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_issues.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_italic_angle.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_monospace.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_names.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_rename.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_sanitize.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_save.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_style_flags.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_style_name.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_subset.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_svg.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_unicode_blocks_and_scripts.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_update_unicode_data.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_variable.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_version.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_vertical_metrics.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_weight.py +0 -0
- {python_fontbro-0.26.0 → python_fontbro-0.26.1}/tests/test_width.py +0 -0
|
@@ -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
|
|
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)
|
|
@@ -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
|
-
|
|
14
|
-
self.
|
|
13
|
+
expected = f"Font('{font._filepath}')"
|
|
14
|
+
self.assertEqual(s, expected)
|
|
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.26.0 → python_fontbro-0.26.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
|
|
File without changes
|
|
File without changes
|