Browse Source

replace Press Start 2P

Yuki Takei 3 years ago
parent
commit
c1c175dcfc

BIN
packages/app/public/static/fonts/PressStart2P-latin-ext.woff2


BIN
packages/app/public/static/fonts/PressStart2P-latin.woff2


BIN
packages/app/public/static/fonts/PressStart2P.ttf


+ 2 - 1
packages/app/src/pages/_document.page.tsx

@@ -28,7 +28,8 @@ class GrowiDocument extends Document {
           {renderScriptTagsByGroup('basis')}
           {renderStyleTagsByGroup('basis')}
           */}
-          <link rel='preload' href="/static/fonts/PressStart2P.ttf" as="font" type="font/ttf" />
+          <link rel='preload' href="/static/fonts/PressStart2P-latin.woff2" as="font" type="font/woff2" />
+          <link rel='preload' href="/static/fonts/PressStart2P-latin-ext.woff2" as="font" type="font/woff2" />
           <link rel='preload' href="/static/fonts/Lato-Regular-latin.woff2" as="font" type="font/woff2" />
           <link rel='preload' href="/static/fonts/Lato-Regular-latin-ext.woff2" as="font" type="font/woff2" />
           <link rel='preload' href="/static/fonts/Lato-Bold-latin.woff2" as="font" type="font/woff2" />

+ 13 - 0
packages/app/src/styles/_fonts.scss

@@ -1,6 +1,19 @@
+// Press Start 2P
 @font-face {
   font-family: 'Press Start 2P';
   font-style: normal;
+  font-weight: 400;
+  src: url('/static/fonts/PressStart2P-latin-ext.woff2') format('woff2');
+  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+@font-face {
+  font-family: 'Press Start 2P';
+  font-style: normal;
+  font-weight: 400;
+  src: url('/static/fonts/PressStart2P-latin.woff2') format('woff2');
+  unicode-range: 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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+
 // Lato
 @font-face {
   font-family: 'Lato';