inconsolata font added directly to site rather than rely on google fonts

This commit is contained in:
James Tomasino 2020-12-23 19:54:11 +00:00
parent 1f091e39a5
commit ddb28ee6f8
4 changed files with 10 additions and 2 deletions

View File

@ -311,6 +311,8 @@ if [ "$run_user" = "root" ] || [ "$run_user" = "publish" ]; then
# copy cosmic banner
cp "/var/cosmic/files/cosmicbanner.png" "${html_dir}"
cp "/var/cosmic/files/paper.png" "${html_dir}"
cp "/var/cosmic/files/inconsolata-regular-webfont.woff" "${html_dir}"
cp "/var/cosmic/files/inconsolata-regular-webfont.woff2" "${html_dir}"
# generate tilde.json
userlist=$(voyagers | awk '{print "{\"username\":\"" $0 "\"}," }')

Binary file not shown.

Binary file not shown.

View File

@ -1,5 +1,11 @@
<link href="https://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet">
<style>
@font-face {
font-family: 'inconsolata';
src: url('/inconsolata-regular-webfont.woff2') format('woff2'),
url('/inconsolata-regular-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
html {
margin: 0;
@ -112,7 +118,7 @@
display: inline-block;
text-align: left;
white-space: pre;
font-family: 'Inconsolata', monospace;
font-family: 'inconsolata', monospace;
margin: 0 auto;
width: auto;
}