diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-05-01 00:48:35 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-05-01 00:48:35 +0200 |
commit | 156f7f8546890c6406001061dae199f8320ca83b (patch) | |
tree | 06b54cbe7f9c2dbc1df83b30421fffcb6bbd6a1a | |
parent | 3d386ba2f16c95e5152052552a3bd571a81bc016 (diff) | |
download | server-156f7f8546890c6406001061dae199f8320ca83b.tar.gz |
Add web fonts.
18 files changed, 107 insertions, 0 deletions
diff --git a/public/fonts/CircledNumbers.woff2 b/public/fonts/CircledNumbers.woff2 Binary files differnew file mode 100644 index 0000000..93ff257 --- /dev/null +++ b/public/fonts/CircledNumbers.woff2 diff --git a/public/fonts/Dingbats.woff2 b/public/fonts/Dingbats.woff2 Binary files differnew file mode 100644 index 0000000..9bda5bc --- /dev/null +++ b/public/fonts/Dingbats.woff2 diff --git a/public/fonts/NotoEmoji.woff2 b/public/fonts/NotoEmoji.woff2 Binary files differnew file mode 100644 index 0000000..19d96e5 --- /dev/null +++ b/public/fonts/NotoEmoji.woff2 diff --git a/public/fonts/SourceSans3-It.woff2 b/public/fonts/SourceSans3-It.woff2 Binary files differnew file mode 100644 index 0000000..f9a86ed --- /dev/null +++ b/public/fonts/SourceSans3-It.woff2 diff --git a/public/fonts/SourceSans3-Regular.woff2 b/public/fonts/SourceSans3-Regular.woff2 Binary files differnew file mode 100644 index 0000000..47b220d --- /dev/null +++ b/public/fonts/SourceSans3-Regular.woff2 diff --git a/public/fonts/SourceSans3-Semibold.woff2 b/public/fonts/SourceSans3-Semibold.woff2 Binary files differnew file mode 100644 index 0000000..e5fbb36 --- /dev/null +++ b/public/fonts/SourceSans3-Semibold.woff2 diff --git a/public/fonts/SourceSans3-SemiboldIt.woff2 b/public/fonts/SourceSans3-SemiboldIt.woff2 Binary files differnew file mode 100644 index 0000000..8b58007 --- /dev/null +++ b/public/fonts/SourceSans3-SemiboldIt.woff2 diff --git a/public/fonts/SourceSerif4-It.woff2 b/public/fonts/SourceSerif4-It.woff2 Binary files differnew file mode 100644 index 0000000..610c4ad --- /dev/null +++ b/public/fonts/SourceSerif4-It.woff2 diff --git a/public/fonts/SourceSerif4-Regular.woff2 b/public/fonts/SourceSerif4-Regular.woff2 Binary files differnew file mode 100644 index 0000000..41929ba --- /dev/null +++ b/public/fonts/SourceSerif4-Regular.woff2 diff --git a/public/fonts/SourceSerif4-Semibold.woff2 b/public/fonts/SourceSerif4-Semibold.woff2 Binary files differnew file mode 100644 index 0000000..afe4ce8 --- /dev/null +++ b/public/fonts/SourceSerif4-Semibold.woff2 diff --git a/public/fonts/SourceSerif4-SemiboldIt.woff2 b/public/fonts/SourceSerif4-SemiboldIt.woff2 Binary files differnew file mode 100644 index 0000000..e65b4c8 --- /dev/null +++ b/public/fonts/SourceSerif4-SemiboldIt.woff2 diff --git a/public/fonts/SourceSerif4SmText-It.woff2 b/public/fonts/SourceSerif4SmText-It.woff2 Binary files differnew file mode 100644 index 0000000..efa95f7 --- /dev/null +++ b/public/fonts/SourceSerif4SmText-It.woff2 diff --git a/public/fonts/SourceSerif4SmText-Regular.woff2 b/public/fonts/SourceSerif4SmText-Regular.woff2 Binary files differnew file mode 100644 index 0000000..3596427 --- /dev/null +++ b/public/fonts/SourceSerif4SmText-Regular.woff2 diff --git a/public/fonts/SourceSerif4SmText-Semibold.woff2 b/public/fonts/SourceSerif4SmText-Semibold.woff2 Binary files differnew file mode 100644 index 0000000..1dadd54 --- /dev/null +++ b/public/fonts/SourceSerif4SmText-Semibold.woff2 diff --git a/public/fonts/SourceSerif4SmText-SemiboldIt.woff2 b/public/fonts/SourceSerif4SmText-SemiboldIt.woff2 Binary files differnew file mode 100644 index 0000000..21df788 --- /dev/null +++ b/public/fonts/SourceSerif4SmText-SemiboldIt.woff2 diff --git a/public/fonts/fonts.css b/public/fonts/fonts.css new file mode 100644 index 0000000..641373e --- /dev/null +++ b/public/fonts/fonts.css @@ -0,0 +1,88 @@ +@font-face { + font-family: 'Circled Numbers'; + src: url('CircledNumbers.woff2') format('woff2'); + unicode-range: U+2460-2465, U+2776-277B; +} + +@font-face { + font-family: 'Dingbats'; + src: url('Dingbats.woff2') format('woff2'); + unicode-range: U+2701-27FF; +} + +@font-face { + font-family: 'Noto Emoji'; + src: url('NotoEmoji.woff2') format('woff2'); +} + +@font-face { + font-family: 'Source Sans'; + src: url('SourceSans3-Regular.woff2') format('woff2'); +} + +@font-face { + font-family: 'Source Sans'; + font-style: italic; + src: url('SourceSans3-It.woff2') format('woff2'); +} + +@font-face { + font-family: 'Source Sans'; + font-weight: bold; + src: url('SourceSans3-Semibold.woff2') format('woff2'); +} + +@font-face { + font-family: 'Source Sans'; + font-weight: bold; + font-style: italic; + src: url('SourceSans3-SemiboldIt.woff2') format('woff2'); +} + +@font-face { + font-family: 'Source Serif'; + src: url('SourceSerif4-Regular.woff2') format('woff2'); +} + +@font-face { + font-family: 'Source Serif'; + font-style: italic; + src: url('SourceSerif4-It.woff2') format('woff2'); +} + +@font-face { + font-family: 'Source Serif'; + font-weight: bold; + src: url('SourceSerif4-Semibold.woff2') format('woff2'); +} + +@font-face { + font-family: 'Source Serif'; + font-weight: bold; + font-style: italic; + src: url('SourceSerif4-SemiboldIt.woff2') format('woff2'); +} + +@font-face { + font-family: 'Source Serif SmText'; + src: url('SourceSerif4SmText-Regular.woff2') format('woff2'); +} + +@font-face { + font-family: 'Source Serif SmText'; + font-style: italic; + src: url('SourceSerif4SmText-It.woff2') format('woff2'); +} + +@font-face { + font-family: 'Source Serif SmText'; + font-weight: bold; + src: url('SourceSerif4SmText-Semibold.woff2') format('woff2'); +} + +@font-face { + font-family: 'Source Serif SmText'; + font-weight: bold; + font-style: italic; + src: url('SourceSerif4SmText-SemiboldIt.woff2') format('woff2'); +} diff --git a/tools/fonts/make_number_font.sh b/tools/fonts/make_number_font.sh new file mode 100644 index 0000000..1f85bc3 --- /dev/null +++ b/tools/fonts/make_number_font.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# +# Create CircledNumbers webfont by subsetting the circled numbers from NotoSansJP. +# + +pyftsubset NotoSansJP-Regular.otf --verbose --output-file=CircledNumbers.woff2 --flavor=woff2 --unicodes=U+2776-277b,U+2460-2465 --xml diff --git a/tools/fonts/make_woff.sh b/tools/fonts/make_woff.sh new file mode 100644 index 0000000..4001d5f --- /dev/null +++ b/tools/fonts/make_woff.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# The latin character set as used by google fonts: +# UNICODE=U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD + +# Extended with some extra symbols we want: +UNICODE=U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+2500-25ff,U+2600-26ff,U+FEFF,U+FFFD + +for F in $* +do + OUT=$(basename $(basename $F .ttf) .otf).woff2 + pyftsubset $F --verbose --output-file=$OUT --flavor=woff2 --unicodes=$UNICODE +done |