Commit ce2ac8e2 authored by lunasorcery's avatar lunasorcery
Browse files

vendor in the fonts instead of relying on googlefonts

parent 210505f3
......@@ -37,9 +37,17 @@ maybe_mkdir('gen/img/')
print("copying static assets...")
shutil.copyfile('style.css', 'gen/style.css')
shutil.copyfile('script.js', 'gen/script.js')
shutil.copyfile('favicon.ico', 'gen/favicon.ico')
staticAssets = [
'fonts.css',
'style.css',
'script.js',
'favicon.ico',
'muli-300.ttf',
'muli-400.ttf',
'muli-800.ttf',
]
for asset in staticAssets:
shutil.copyfile(asset, f'gen/{asset}')
print("converting images...")
......
@font-face {
font-family: 'Muli';
font-style: normal;
font-weight: 300;
src: url(muli-300.ttf) format('truetype');
}
@font-face {
font-family: 'Muli';
font-style: normal;
font-weight: 400;
src: url(muli-400.ttf) format('truetype');
}
@font-face {
font-family: 'Muli';
font-style: normal;
font-weight: 800;
src: url(muli-800.ttf) format('truetype');
}
......@@ -4,7 +4,7 @@
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>executable.graphics</title>
<link href="https://fonts.googleapis.com/css?family=Muli:100,300,400,800" rel="stylesheet"/>
<link href="fonts.css" rel="stylesheet"/>
<link href="style.css" rel="stylesheet"/>
</head>
<body>
......
File added
File added
File added
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment