blob: 1891bc2c299916d8a2c65f5d0e0aa6a2baf5f82b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
|