diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-08-15 15:30:31 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-08-15 15:30:31 +0200 |
commit | c491ee7b67aeb30c021e6f540bdaa7c19d484760 (patch) | |
tree | ea8f2a7b17534914b8acc9417f80feaffda39e17 | |
parent | ebada0773fd93dac5648ab7209ac67a208007d74 (diff) |
Use my custom fonts
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | src/style.css | 28 |
2 files changed, 31 insertions, 1 deletions
@@ -8,7 +8,9 @@ sources := ${shell find src -type f -regextype egrep -regex '.*/(index\.html|.* outputs := ${sources:src/%=out/%} outputs := ${outputs:%.dot=%.svg} -all: ${outdirs} ${outputs} +all: ${outdirs} ${outputs} fonts + @cp -r fonts out + @printf 'CP\tfonts\n' ${outdirs}: @mkdir -p $@ diff --git a/src/style.css b/src/style.css index 2f955ab..8277d0e 100644 --- a/src/style.css +++ b/src/style.css @@ -12,6 +12,34 @@ --red: #C66; } +@font-face { + font-family: Vollkorn; + src: url('fonts/vollkorn-regular.woff2') format('woff2'); + font-weight: normal; + font-style: normal; +} + +@font-face { + font-family: Vollkorn; + src: url('fonts/vollkorn-italic.woff2') format('woff2'); + font-weight: normal; + font-style: italic; +} + +@font-face { + font-family: 'Iosevka Smooth'; + src: url('fonts/iosevka-regular.woff2') format('woff2'); + font-weight: normal; + font-style: normal; +} + +@font-face { + font-family: 'Iosevka Smooth'; + src: url('fonts/iosevka-italic.woff2') format('woff2'); + font-weight: normal; + font-style: italic; +} + *, *::before, *::after { box-sizing: border-box; } body { |