Skip to content

Commit da67010

Browse files
authored
system/ui: all font weights (commaai#35255)
1 parent 8097a92 commit da67010

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

system/ui/lib/application.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@
2323
FONT_DIR = ASSETS_DIR.joinpath("fonts")
2424

2525
class FontWeight(IntEnum):
26-
BLACK = 0
27-
BOLD = 1
28-
EXTRA_BOLD = 2
29-
EXTRA_LIGHT = 3
26+
THIN = 0
27+
EXTRA_LIGHT = 1
28+
LIGHT = 2
29+
NORMAL = 3
3030
MEDIUM = 4
31-
NORMAL = 5
32-
SEMI_BOLD = 6
33-
THIN = 7
31+
SEMI_BOLD = 5
32+
BOLD = 6
33+
EXTRA_BOLD = 7
34+
BLACK = 8
3435

3536

3637
class GuiApplication:
@@ -153,14 +154,15 @@ def height(self):
153154

154155
def _load_fonts(self):
155156
font_files = (
156-
"Inter-Black.ttf",
157-
"Inter-Bold.ttf",
158-
"Inter-ExtraBold.ttf",
157+
"Inter-Thin.ttf",
159158
"Inter-ExtraLight.ttf",
160-
"Inter-Medium.ttf",
159+
"Inter-Light.ttf",
161160
"Inter-Regular.ttf",
161+
"Inter-Medium.ttf",
162162
"Inter-SemiBold.ttf",
163-
"Inter-Thin.ttf"
163+
"Inter-Bold.ttf",
164+
"Inter-ExtraBold.ttf",
165+
"Inter-Black.ttf",
164166
)
165167

166168
for index, font_file in enumerate(font_files):

0 commit comments

Comments
 (0)