Use Source Sans Pro font, selfhosted

This commit is contained in:
Cadence Ember 2022-11-10 23:55:31 +13:00
parent 02819a7459
commit b0e90f5cf9
Signed by: cadence
GPG key ID: BC1C2C61CF521B17
6 changed files with 42 additions and 4 deletions

View file

@ -22,6 +22,7 @@
#".js" #"text/javascript" #".js" #"text/javascript"
#".png" #"image/png" #".png" #"image/png"
#".svg" #"image/svg+xml" #".svg" #"image/svg+xml"
#".woff2" #"font/woff2"
#".txt" #"text/plain")) #".txt" #"text/plain"))
(define (ext->mime-type ext) (define (ext->mime-type ext)

View file

@ -1,13 +1,9 @@
/* reset the reset */ /* reset the reset */
blockquote, code, del, details, div, dl, dt, em, fieldset, figcaption, figure, h1, h2, h3, h4, h5, h6, li, ol, p, pre, q, span, strong, ul { blockquote, code, del, details, div, dl, dt, em, fieldset, figcaption, figure, h1, h2, h3, h4, h5, h6, li, ol, p, pre, q, span, strong, ul {
font-family: sans-serif;
margin: initial; margin: initial;
padding: initial; padding: initial;
border: initial; border: initial;
} }
input, textarea {
font-family: sans-serif;
}
pre, code { pre, code {
font-family: monospace; font-family: monospace;
font-size: 0.85em; font-size: 0.85em;
@ -32,6 +28,7 @@ sub {
/* general page appearance */ /* general page appearance */
body.skin-fandomdesktop, button, input, textarea, .wikitable, .va-table { body.skin-fandomdesktop, button, input, textarea, .wikitable, .va-table {
font-family: "Source Sans Pro", "Segoe UI", sans-serif;
font-size: 18px; font-size: 18px;
line-height: 1.5; line-height: 1.5;
} }
@ -376,3 +373,43 @@ figcaption, .lightbox-caption, .thumbcaption {
text-align: center !important; text-align: center !important;
} }
} }
/* *****
* Custom Font - all of windows' preinstalled fonts are garbage, so I have to add a custom one
* Source Sans Pro © 20100, 2012, 2014 Adobe Systems Incorporated
* font files licensed under the SIL Open Font License version 1.1 http://scripts.sil.org/OFL
* this license notice must be distributed with the font files.
* thanks to https://github.com/majodev/google-webfonts-helper/ for the downloader!
***** */
@font-face {
font-family: "Source Sans Pro";
font-style: normal;
font-weight: 400;
font-display: swap;
src: local(""),
url("/static/source-sans-pro-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2") format("woff2");
}
@font-face {
font-family: "Source Sans Pro";
font-style: italic;
font-weight: 400;
font-display: swap;
src: local(""),
url("/static/source-sans-pro-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-italic.woff2") format("woff2");
}
@font-face {
font-family: "Source Sans Pro";
font-style: normal;
font-weight: 700;
font-display: swap;
src: local(""),
url("/static/source-sans-pro-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.woff2") format("woff2");
}
@font-face {
font-family: "Source Sans Pro";
font-style: italic;
font-weight: 700;
font-display: swap;
src: local(""),
url("/static/source-sans-pro-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700italic.woff2") format("woff2");
}