summaryrefslogtreecommitdiff
path: root/scripts/temporary_touchups.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/temporary_touchups.py')
-rw-r--r--scripts/temporary_touchups.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/temporary_touchups.py b/scripts/temporary_touchups.py
new file mode 100644
index 0000000..1891bc2
--- /dev/null
+++ b/scripts/temporary_touchups.py
@@ -0,0 +1,14 @@
+#!/usr/bin/python
+"""Temporary post-build changes for Roboto."""
+
+from nototools import font_data
+
+import roboto_data
+
+def apply_temporary_fixes(font):
+ """Apply some temporary fixes."""
+ # Fix usWeight:
+ font_name = font_data.font_name(font)
+ weight = roboto_data.extract_weight_name(font_name)
+ weight_number = roboto_data.WEIGHTS[weight]
+ font['OS/2'].usWeightClass = weight_number