]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
Add contrast axis
authorEmma Marichal <bonjour@emmamarichal.fr>
Fri, 18 Jul 2025 08:00:03 +0000 (10:00 +0200)
committerEmma Marichal <bonjour@emmamarichal.fr>
Fri, 18 Jul 2025 08:00:03 +0000 (10:00 +0200)
Lib/axisregistry/data/contrast.textproto [new file with mode: 0644]

diff --git a/Lib/axisregistry/data/contrast.textproto b/Lib/axisregistry/data/contrast.textproto
new file mode 100644 (file)
index 0000000..f617e07
--- /dev/null
@@ -0,0 +1,33 @@
+tag: "CTRS"
+display_name: "Contrast"
+min_value: -100.0
+default_value: 0.0
+max_value: 100.0
+precision: 1
+fallback {
+  name: "Reversed"
+  value: -100.0
+}
+fallback {
+  name: "None"
+  value: 0.0
+}
+fallback {
+  name: "High"
+  value: 100.0
+}
+illustration_url: "contrast.svg"
+description:
+  "Contrast describes the stroke width difference"
+  " between the thick and thin parts of the font glyphs."
+  "A value of zero indicates no visible/apparent contrast."
+  "A positive number indicates an increase in contrast relative to"
+  " the zero-contrast thickness, achieved by making the thin stroke"
+  " thinner. A value of 100 indicates that the thin stroke has"
+  " disappeared completely."
+  "A negative value indicates “reverse contrast”: the strokes"
+  " which would conventionally be thick in the writing system are"
+  " instead made thinner. In western-language fonts this"
+  " might be perceived as a 19th-century, “circus” or"
+  " “old West” effect. A value of -100 indicates that the strokes"
+  " which would normally be thick have disappeared completely."
\ No newline at end of file