diff options
author | Serghei Cebotari <serghei@cebotari.ru> | 2023-11-23 23:42:22 +0300 |
---|---|---|
committer | Serghei Cebotari <serghei@cebotari.ru> | 2023-11-23 23:42:22 +0300 |
commit | bc0389208b62a74c1c7b1067ebeb0f3532d0cdaa (patch) | |
tree | 83c42f8b7cef3ee20f5b02deb5d6436ebea9e1f7 | |
parent | 945246c56093b022cfcbd1f5897c5671adab391f (diff) |
Edit fonts
-rw-r--r-- | layouts/_default/baseof.html | 1 | ||||
-rw-r--r-- | layouts/partials/head/style.html | 31 | ||||
-rw-r--r-- | static/font/cmunbi.woff | bin | 0 -> 155676 bytes | |||
-rw-r--r-- | static/font/cmunbx.woff | bin | 0 -> 120936 bytes | |||
-rw-r--r-- | static/font/cmunrm.woff | bin | 0 -> 123340 bytes | |||
-rw-r--r-- | static/font/cmunti.woff | bin | 0 -> 158668 bytes |
6 files changed, 30 insertions, 2 deletions
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 Binary files differnew file mode 100644 index 0000000..e074aa6 --- /dev/null +++ b/static/font/cmunbi.woff diff --git a/static/font/cmunbx.woff b/static/font/cmunbx.woff Binary files differnew file mode 100644 index 0000000..2b5444a --- /dev/null +++ b/static/font/cmunbx.woff diff --git a/static/font/cmunrm.woff b/static/font/cmunrm.woff Binary files differnew file mode 100644 index 0000000..9efca12 --- /dev/null +++ b/static/font/cmunrm.woff diff --git a/static/font/cmunti.woff b/static/font/cmunti.woff Binary files differnew file mode 100644 index 0000000..122340a --- /dev/null +++ b/static/font/cmunti.woff |