]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
Revert "sync with google/fonts"
authorMarc Foley <m.foley.88@gmail.com>
Wed, 24 Aug 2022 13:36:23 +0000 (14:36 +0100)
committerGitHub <noreply@github.com>
Wed, 24 Aug 2022 13:36:23 +0000 (14:36 +0100)
Lib/axisregistry/__init__.py
tests/test_axisregistry_api.py
tox.ini

index 2c5404b199d71abf2894f1e96715c8cfd60016b0..f90a6b1064851947b5ae8c728422d0a27f220cd6 100644 (file)
@@ -53,32 +53,6 @@ GF_STATIC_STYLES = OrderedDict(
 )
 
 
-    for axis in [
-        "casual.textproto",
-        "cursive.textproto",
-        "fill.textproto",
-        "flair.textproto",
-        "grade.textproto",
-        "italic.textproto",
-        "monospace.textproto",
-        "optical_size.textproto",
-        "slant.textproto",
-        "softness.textproto",
-        "volume.textproto",
-        "weight.textproto",
-        "width.textproto",
-        "wonky.textproto",
-        "x_opaque.textproto",
-        "x_transparent_figures.textproto",
-        "x_transparent.textproto",
-        "y_opaque.textproto",
-        "y_transparent_ascender.textproto",
-        "y_transparent_descender.textproto",
-        "y_transparent_figures.textproto",
-        "y_transparent_lowercase.textproto",
-        "y_transparent_uppercase.textproto",
-    ]:
-        append_AxisMessage(resource_filename("axisregistry", "data/" + axis))
 def load_protobuf(klass, path):
     message = klass()
     with open(path, "rb") as text_data:
index ec78dec12147f715b4d2c80c5ce790d54bc2aa4e..6e894d3b25885fa76c513bc9f0c39f92b699b004 100644 (file)
@@ -6,6 +6,7 @@ def test_AxisRegistry():
     assert "GRAD" in registry.keys()
     for axis_tag in registry.keys():
         assert len(axis_tag) == 4
+        assert len(registry[axis_tag].fallback) > 0
         for f in range(len(registry[axis_tag].fallback)):
             fallback = registry[axis_tag].fallback[f]
 
diff --git a/tox.ini b/tox.ini
index e0e22915a40f7724416ce30c7c03cd9042f78dc8..9809c5c786dbdc8272bed6178b5a799ac2ea5984 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -17,8 +17,6 @@ deps =
     -r test_requirements.txt
 commands =
     black --check --diff --extend-exclude "_version.py" .
-    isort --check-only --diff .
-    flake8
 
 [testenv:coverage-report]
 skip_install = true