python-fontbro 0.32.0__py3-none-any.whl → 0.32.1__py3-none-any.whl

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.
fontbro/metadata.py CHANGED
@@ -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.32.0"
7
+ __version__ = "0.32.1"
fontbro/variable.py CHANGED
@@ -175,11 +175,15 @@ def get_variable_instance_by_style_name(
175
175
  style_name: str,
176
176
  ) -> dict[str, Any] | None:
177
177
  """
178
- Gets the variable instance of the given font by style name.
178
+ Gets the variable instance of the given font by style name,
179
+ the instances without a name record (style name None) are skipped.
179
180
  """
181
+ if not style_name:
182
+ return None
180
183
  instances = get_variable_instances(ttfont) or []
181
184
  for instance in instances:
182
- if slugify(instance["style_name"]) == slugify(style_name):
185
+ instance_style_name = instance["style_name"]
186
+ if instance_style_name and slugify(instance_style_name) == slugify(style_name):
183
187
  return instance
184
188
  return None
185
189
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-fontbro
3
- Version: 0.32.0
3
+ Version: 0.32.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>
@@ -47,6 +47,7 @@ Classifier: Programming Language :: Python :: 3.11
47
47
  Classifier: Programming Language :: Python :: 3.12
48
48
  Classifier: Programming Language :: Python :: 3.13
49
49
  Classifier: Programming Language :: Python :: 3.14
50
+ Classifier: Programming Language :: Python :: 3.15
50
51
  Classifier: Programming Language :: Python :: Implementation :: PyPy
51
52
  Classifier: Topic :: Text Processing :: Fonts
52
53
  Classifier: Topic :: Multimedia :: Graphics
@@ -11,7 +11,7 @@ fontbro/flags.py,sha256=NIdKvelHytLpcbwzx-3s4aeNQKefU-7hlDV5XbBj3Oo,683
11
11
  fontbro/font.py,sha256=iCQH-5xNqO4IWz2xUkx9jA_iKrWwrg0ERadbcMNXCLQ,73994
12
12
  fontbro/glyphs.py,sha256=E4xyKLx8w1BeIPelMXOOqYt6-Z7ebu0foEIKo3FYEIg,1947
13
13
  fontbro/math.py,sha256=DZOiXmGu2g_1lBiEaSifWCWf1VeSYv9ijuWDZYy6xUQ,349
14
- fontbro/metadata.py,sha256=gBl5L9ynAMTLT-77xQ9MFJ41Rf1qh5IyC85_Y4-tXFA,264
14
+ fontbro/metadata.py,sha256=wPhIDPtznHLkKTTuE9Aiy0sTk_NBefp5tVyoIg3ssxk,264
15
15
  fontbro/metrics.py,sha256=JUt-u65dDMXHekYKGxo_254Xk4W87UjEDLZFwuzkh8M,6401
16
16
  fontbro/monospace.py,sha256=hjmjOGBwTt_qMDVNc0hlareMD2v6gi8oZ_aYhB_hcus,2988
17
17
  fontbro/names.py,sha256=NPtN1Ycd9ZqhBBJUqhTsZr-laTx2PIrihwmcluQb4mc,21949
@@ -25,14 +25,14 @@ fontbro/support.py,sha256=-hHc7C_AxRl7eK0sSwkkSv4eOqHJtFNNZRpVp8c1KPQ,9905
25
25
  fontbro/tables.py,sha256=-SoAJl2yAabHj1ko8l26GuUYDgkKYuMz6L40Qsx6CwE,4619
26
26
  fontbro/unicode.py,sha256=kmDUCfxeMD-B6TQZa6EnXkdFTLpD9qnZ9YzLldRM6jc,6432
27
27
  fontbro/utils.py,sha256=iodvxg9rzSKGuLdOacPxH5G9LZw1qGMUaYH4eZbnkik,996
28
- fontbro/variable.py,sha256=llOw5T91FYiGCzSVvXag-d9R8T4v1bsfzAV0F1ks2ZM,14065
28
+ fontbro/variable.py,sha256=d-jCit_Jkoov1RG49g_hQdJ3heDSnbjaDAN_oVXPwrs,14253
29
29
  fontbro/version.py,sha256=3_m26Gpu6wfSE7WNnTEXENiP2hsYrBZjM_DS1awDqjU,9336
30
30
  fontbro/data/family-classifications.json,sha256=2aj7AXVqwqQDSvGUOLIso3GrxH3motsa6a1SPxU4hZ4,24173
31
31
  fontbro/data/features.json,sha256=QS539T_e0U8M-_m125ZvgNDpN_geKjAM1raDi90vqIM,30367
32
32
  fontbro/data/unicode-blocks.json,sha256=F2qA46RN3X-__n9T8_VVdKr77Tj9iy2N4tUnnQOBmPI,28353
33
33
  fontbro/data/unicode-scripts.json,sha256=XDiyXLN2TB6Oo8AjVODuV72Y1_kkCwL6-GrosdeprsU,17069
34
- python_fontbro-0.32.0.dist-info/licenses/LICENSE.txt,sha256=NOGOw1tmp315ex224Or-4PWS9W5jbVWxcqbf2KW-EK8,1078
35
- python_fontbro-0.32.0.dist-info/METADATA,sha256=zV6nZwGAbQD8Q6ZiLX9LRE-qs-vwbKfuPt18jbCXAss,43403
36
- python_fontbro-0.32.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
37
- python_fontbro-0.32.0.dist-info/top_level.txt,sha256=RPG3vBzvn6LKU2E_FNPBPuKlygx9aodErAYJNeyV3Jc,8
38
- python_fontbro-0.32.0.dist-info/RECORD,,
34
+ python_fontbro-0.32.1.dist-info/licenses/LICENSE.txt,sha256=NOGOw1tmp315ex224Or-4PWS9W5jbVWxcqbf2KW-EK8,1078
35
+ python_fontbro-0.32.1.dist-info/METADATA,sha256=L9JmAqt9h3sivByGLi1nrS0wzGrY12y2xKPt9I-pAsg,43454
36
+ python_fontbro-0.32.1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
37
+ python_fontbro-0.32.1.dist-info/top_level.txt,sha256=RPG3vBzvn6LKU2E_FNPBPuKlygx9aodErAYJNeyV3Jc,8
38
+ python_fontbro-0.32.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (84.0.0)
2
+ Generator: setuptools (84.2.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5