diff --git a/src/page-static.rkt b/src/page-static.rkt index c9967ad..2bf684c 100644 --- a/src/page-static.rkt +++ b/src/page-static.rkt @@ -22,6 +22,7 @@ #".js" #"text/javascript" #".png" #"image/png" #".svg" #"image/svg+xml" + #".woff2" #"font/woff2" #".txt" #"text/plain")) (define (ext->mime-type ext) diff --git a/static/main.css b/static/main.css index d0bfe8c..bed9cdb 100644 --- a/static/main.css +++ b/static/main.css @@ -1,13 +1,9 @@ /* 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 { - font-family: sans-serif; margin: initial; padding: initial; border: initial; } -input, textarea { - font-family: sans-serif; -} pre, code { font-family: monospace; font-size: 0.85em; @@ -32,6 +28,7 @@ sub { /* general page appearance */ body.skin-fandomdesktop, button, input, textarea, .wikitable, .va-table { + font-family: "Source Sans Pro", "Segoe UI", sans-serif; font-size: 18px; line-height: 1.5; } @@ -376,3 +373,43 @@ figcaption, .lightbox-caption, .thumbcaption { 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"); +} diff --git a/static/source-sans-pro-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.woff2 b/static/source-sans-pro-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.woff2 new file mode 100644 index 0000000..199eac2 Binary files /dev/null and b/static/source-sans-pro-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.woff2 differ diff --git a/static/source-sans-pro-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700italic.woff2 b/static/source-sans-pro-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700italic.woff2 new file mode 100644 index 0000000..ccc64f7 Binary files /dev/null and b/static/source-sans-pro-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700italic.woff2 differ diff --git a/static/source-sans-pro-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-italic.woff2 b/static/source-sans-pro-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-italic.woff2 new file mode 100644 index 0000000..dd4ac82 Binary files /dev/null and b/static/source-sans-pro-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-italic.woff2 differ diff --git a/static/source-sans-pro-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2 b/static/source-sans-pro-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2 new file mode 100644 index 0000000..bc9c203 Binary files /dev/null and b/static/source-sans-pro-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2 differ