From 156f7f8546890c6406001061dae199f8320ca83b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 1 May 2021 00:48:35 +0200 Subject: Add web fonts. --- public/fonts/CircledNumbers.woff2 | Bin 0 -> 2120 bytes public/fonts/Dingbats.woff2 | Bin 0 -> 20804 bytes public/fonts/NotoEmoji.woff2 | Bin 0 -> 247244 bytes public/fonts/SourceSans3-It.woff2 | Bin 0 -> 22692 bytes public/fonts/SourceSans3-Regular.woff2 | Bin 0 -> 22736 bytes public/fonts/SourceSans3-Semibold.woff2 | Bin 0 -> 22948 bytes public/fonts/SourceSans3-SemiboldIt.woff2 | Bin 0 -> 22792 bytes public/fonts/SourceSerif4-It.woff2 | Bin 0 -> 28600 bytes public/fonts/SourceSerif4-Regular.woff2 | Bin 0 -> 28356 bytes public/fonts/SourceSerif4-Semibold.woff2 | Bin 0 -> 29164 bytes public/fonts/SourceSerif4-SemiboldIt.woff2 | Bin 0 -> 29248 bytes public/fonts/SourceSerif4SmText-It.woff2 | Bin 0 -> 29112 bytes public/fonts/SourceSerif4SmText-Regular.woff2 | Bin 0 -> 29268 bytes public/fonts/SourceSerif4SmText-Semibold.woff2 | Bin 0 -> 30328 bytes public/fonts/SourceSerif4SmText-SemiboldIt.woff2 | Bin 0 -> 29776 bytes public/fonts/fonts.css | 88 +++++++++++++++++++++++ tools/fonts/make_number_font.sh | 6 ++ tools/fonts/make_woff.sh | 13 ++++ 18 files changed, 107 insertions(+) create mode 100644 public/fonts/CircledNumbers.woff2 create mode 100644 public/fonts/Dingbats.woff2 create mode 100644 public/fonts/NotoEmoji.woff2 create mode 100644 public/fonts/SourceSans3-It.woff2 create mode 100644 public/fonts/SourceSans3-Regular.woff2 create mode 100644 public/fonts/SourceSans3-Semibold.woff2 create mode 100644 public/fonts/SourceSans3-SemiboldIt.woff2 create mode 100644 public/fonts/SourceSerif4-It.woff2 create mode 100644 public/fonts/SourceSerif4-Regular.woff2 create mode 100644 public/fonts/SourceSerif4-Semibold.woff2 create mode 100644 public/fonts/SourceSerif4-SemiboldIt.woff2 create mode 100644 public/fonts/SourceSerif4SmText-It.woff2 create mode 100644 public/fonts/SourceSerif4SmText-Regular.woff2 create mode 100644 public/fonts/SourceSerif4SmText-Semibold.woff2 create mode 100644 public/fonts/SourceSerif4SmText-SemiboldIt.woff2 create mode 100644 public/fonts/fonts.css create mode 100644 tools/fonts/make_number_font.sh create mode 100644 tools/fonts/make_woff.sh diff --git a/public/fonts/CircledNumbers.woff2 b/public/fonts/CircledNumbers.woff2 new file mode 100644 index 0000000..93ff257 Binary files /dev/null and b/public/fonts/CircledNumbers.woff2 differ diff --git a/public/fonts/Dingbats.woff2 b/public/fonts/Dingbats.woff2 new file mode 100644 index 0000000..9bda5bc Binary files /dev/null and b/public/fonts/Dingbats.woff2 differ diff --git a/public/fonts/NotoEmoji.woff2 b/public/fonts/NotoEmoji.woff2 new file mode 100644 index 0000000..19d96e5 Binary files /dev/null and b/public/fonts/NotoEmoji.woff2 differ diff --git a/public/fonts/SourceSans3-It.woff2 b/public/fonts/SourceSans3-It.woff2 new file mode 100644 index 0000000..f9a86ed Binary files /dev/null and b/public/fonts/SourceSans3-It.woff2 differ diff --git a/public/fonts/SourceSans3-Regular.woff2 b/public/fonts/SourceSans3-Regular.woff2 new file mode 100644 index 0000000..47b220d Binary files /dev/null and b/public/fonts/SourceSans3-Regular.woff2 differ diff --git a/public/fonts/SourceSans3-Semibold.woff2 b/public/fonts/SourceSans3-Semibold.woff2 new file mode 100644 index 0000000..e5fbb36 Binary files /dev/null and b/public/fonts/SourceSans3-Semibold.woff2 differ diff --git a/public/fonts/SourceSans3-SemiboldIt.woff2 b/public/fonts/SourceSans3-SemiboldIt.woff2 new file mode 100644 index 0000000..8b58007 Binary files /dev/null and b/public/fonts/SourceSans3-SemiboldIt.woff2 differ diff --git a/public/fonts/SourceSerif4-It.woff2 b/public/fonts/SourceSerif4-It.woff2 new file mode 100644 index 0000000..610c4ad Binary files /dev/null and b/public/fonts/SourceSerif4-It.woff2 differ diff --git a/public/fonts/SourceSerif4-Regular.woff2 b/public/fonts/SourceSerif4-Regular.woff2 new file mode 100644 index 0000000..41929ba Binary files /dev/null and b/public/fonts/SourceSerif4-Regular.woff2 differ diff --git a/public/fonts/SourceSerif4-Semibold.woff2 b/public/fonts/SourceSerif4-Semibold.woff2 new file mode 100644 index 0000000..afe4ce8 Binary files /dev/null and b/public/fonts/SourceSerif4-Semibold.woff2 differ diff --git a/public/fonts/SourceSerif4-SemiboldIt.woff2 b/public/fonts/SourceSerif4-SemiboldIt.woff2 new file mode 100644 index 0000000..e65b4c8 Binary files /dev/null and b/public/fonts/SourceSerif4-SemiboldIt.woff2 differ diff --git a/public/fonts/SourceSerif4SmText-It.woff2 b/public/fonts/SourceSerif4SmText-It.woff2 new file mode 100644 index 0000000..efa95f7 Binary files /dev/null and b/public/fonts/SourceSerif4SmText-It.woff2 differ diff --git a/public/fonts/SourceSerif4SmText-Regular.woff2 b/public/fonts/SourceSerif4SmText-Regular.woff2 new file mode 100644 index 0000000..3596427 Binary files /dev/null and b/public/fonts/SourceSerif4SmText-Regular.woff2 differ diff --git a/public/fonts/SourceSerif4SmText-Semibold.woff2 b/public/fonts/SourceSerif4SmText-Semibold.woff2 new file mode 100644 index 0000000..1dadd54 Binary files /dev/null and b/public/fonts/SourceSerif4SmText-Semibold.woff2 differ diff --git a/public/fonts/SourceSerif4SmText-SemiboldIt.woff2 b/public/fonts/SourceSerif4SmText-SemiboldIt.woff2 new file mode 100644 index 0000000..21df788 Binary files /dev/null and b/public/fonts/SourceSerif4SmText-SemiboldIt.woff2 differ 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 -- cgit v1.2.3