From bc0389208b62a74c1c7b1067ebeb0f3532d0cdaa Mon Sep 17 00:00:00 2001 From: Serghei Cebotari <serghei@cebotari.ru> Date: Thu, 23 Nov 2023 23:42:22 +0300 Subject: Edit fonts --- layouts/_default/baseof.html | 1 - layouts/partials/head/style.html | 31 ++++++++++++++++++++++++++++++- static/font/cmunbi.woff | Bin 0 -> 155676 bytes static/font/cmunbx.woff | Bin 0 -> 120936 bytes static/font/cmunrm.woff | Bin 0 -> 123340 bytes static/font/cmunti.woff | Bin 0 -> 158668 bytes 6 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 static/font/cmunbi.woff create mode 100644 static/font/cmunbx.woff create mode 100644 static/font/cmunrm.woff create mode 100644 static/font/cmunti.woff diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 29d4c62..eb129ee 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,7 +5,6 @@ <title>{{ .Site.Title }}</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta charset="utf-8" /> - <link rel="stylesheet" media="all" href="https://fontlibrary.org/face/cmu-serif" type="text/css" /> {{ partial "head/style.html" . }} </head> diff --git a/layouts/partials/head/style.html b/layouts/partials/head/style.html index 99499b1..b1af278 100644 --- a/layouts/partials/head/style.html +++ b/layouts/partials/head/style.html @@ -1,6 +1,35 @@ <style type="text/css"> + @font-face { + font-family: 'Computer Modern Serif'; + src: url('/font/cmunrm.woff') format('woff'),; + font-weight: normal; + font-style: normal; + } + + @font-face { + font-family: 'Computer Modern Serif'; + src: url('/font/cmunbx.woff') format('woff'); + font-weight: bold; + font-style: normal; + } + + @font-face { + font-family: 'Computer Modern Serif'; + src: url('cmunti.woff') format('woff'); + font-weight: normal; + font-style: italic; + } + + + @font-face { + font-family: 'Computer Modern Serif'; + src: url('cmunbi.woff') format('woff'); + font-weight: bold; + font-style: italic; + } + body { - font-family: 'CMUSerifRoman', serif; + font-family: 'Computer Modern Serif', serif; font-size: 13pt; line-height: 120%; background: white; diff --git a/static/font/cmunbi.woff b/static/font/cmunbi.woff new file mode 100644 index 0000000..e074aa6 Binary files /dev/null and b/static/font/cmunbi.woff differ diff --git a/static/font/cmunbx.woff b/static/font/cmunbx.woff new file mode 100644 index 0000000..2b5444a Binary files /dev/null and b/static/font/cmunbx.woff differ diff --git a/static/font/cmunrm.woff b/static/font/cmunrm.woff new file mode 100644 index 0000000..9efca12 Binary files /dev/null and b/static/font/cmunrm.woff differ diff --git a/static/font/cmunti.woff b/static/font/cmunti.woff new file mode 100644 index 0000000..122340a Binary files /dev/null and b/static/font/cmunti.woff differ -- cgit v1.2.3