Просмотр исходного кода

:bulb: font を google font に 変更

Kazuya_Nagase 7 лет назад
Родитель
Сommit
5009bf64b8

+ 0 - 69
public/fonts/press-start-2p/FONTLOG.txt

@@ -1,69 +0,0 @@
-FONTLOG for the Press Start 2P fonts
-
-This file provides detailed information on the Press Start 2P Font Software.
-This information should be distributed along with the Press Start 2P fonts
-and any derivative works.
-
-
-Basic Font Information
-
-Press Start 2P is a bitmap font based on the font design from 1980s Namco
-arcade games. Although the design of uppercase letters and digits dates
-back to Atari's "Sprint" (1977), the specific glyph forms in this TrueType
-conversion are based on those from "Return of Ishtar" (1986), one of the
-first games to include and regularly use lowercase as well as uppercase
-letters in its screen font.
-
-Unlike the original font from the "Return of Ishtar" ROM, Press Start 2P
-includes a wide variety of non-ASCII Unicode characters for pan-European
-use, including Greek and Cyrillic.
-
-
-ChangeLog
-
-1 November 2012 (Cody Boisclair) Press Start 2P version 2.14
-- Add necessary flags for Windows to recognize as a valid Greek/Cyrillic font
-- Change line gap to zero to match version on Google Web Fonts
-
-15 June 2011 (Cody Boisclair) Press Start 2P version 2.13
-- Correct accent marks on U+00D9 Ù and U+00DA Ú
-
-13 June 2011 (Cody Boisclair) Press Start 2P version 2.12
-- Correct glyph for underscore _
-- Move glyphs for Greek iota one pixel to left
-- Fix 'notdef' glyph, whose encoding was broken during last update
-
-13 June 2011 (Cody Boisclair) Press Start 2P version 2.11
-- Retrace characters from bitmaps to fix glyph width bug
-- Add glyphs for Spacing Modifier Letters
-- Move U+201E „ one pixel to left, U+201A ‚ one pixel to right
-
-13 June 2011 (Cody Boisclair) Press Start 2P version 2.10
-- Add Greek and Cyrillic alphabets.
-- Redesign U+0138 ĸ to match shape of Greek kappa
-- Correct glyph shape for grave accent `
-- Move U+00B7 · down one row to appear more centered
-- Modify FONTLOG description to reflect Greek & Cyrillic addition
-
-13 June 2011 (Cody Boisclair) Press Start 2P version 2.01
-- Correct glyph for @; improve glyphs for © and ® based on original @.
-
-12 June 2011 (Cody Boisclair) Press Start 2P version 2.0
-- Initial public release.
-
-
-Acknowledgements
-
-If you make modifications be sure to add your name (N), email (E),
-web-address (if you have one) (W) and description (D).
-This list is in alphabetical order.
-
-N: Cody Boisclair ("CodeMan38")
-E: cody@zone38.net
-W: http://zone38.net/font/
-D: Conversion of glyphs to TrueType; creation of non-ASCII glyphs
-
-N: "QTQ"
-E: [unknown]
-W: http://www22.atpages.jp/nbgifan/namco.html
-D: Original extraction of glyph bitmaps

+ 0 - 94
public/fonts/press-start-2p/LICENSE.txt

@@ -1,94 +0,0 @@
-Copyright (c) 2011, Cody "CodeMan38" Boisclair (cody@zone38.net),
-with Reserved Font Name "Press Start".
-
-This Font Software is licensed under the SIL Open Font License, Version 1.1.
-This license is copied below, and is also available with a FAQ at:
-http://scripts.sil.org/OFL
-
-
------------------------------------------------------------
-SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
------------------------------------------------------------
-
-PREAMBLE
-The goals of the Open Font License (OFL) are to stimulate worldwide
-development of collaborative font projects, to support the font creation
-efforts of academic and linguistic communities, and to provide a free and
-open framework in which fonts may be shared and improved in partnership
-with others.
-
-The OFL allows the licensed fonts to be used, studied, modified and
-redistributed freely as long as they are not sold by themselves. The
-fonts, including any derivative works, can be bundled, embedded, 
-redistributed and/or sold with any software provided that any reserved
-names are not used by derivative works. The fonts and derivatives,
-however, cannot be released under any other type of license. The
-requirement for fonts to remain under this license does not apply
-to any document created using the fonts or their derivatives.
-
-DEFINITIONS
-"Font Software" refers to the set of files released by the Copyright
-Holder(s) under this license and clearly marked as such. This may
-include source files, build scripts and documentation.
-
-"Reserved Font Name" refers to any names specified as such after the
-copyright statement(s).
-
-"Original Version" refers to the collection of Font Software components as
-distributed by the Copyright Holder(s).
-
-"Modified Version" refers to any derivative made by adding to, deleting,
-or substituting -- in part or in whole -- any of the components of the
-Original Version, by changing formats or by porting the Font Software to a
-new environment.
-
-"Author" refers to any designer, engineer, programmer, technical
-writer or other person who contributed to the Font Software.
-
-PERMISSION & CONDITIONS
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of the Font Software, to use, study, copy, merge, embed, modify,
-redistribute, and sell modified and unmodified copies of the Font
-Software, subject to the following conditions:
-
-1) Neither the Font Software nor any of its individual components,
-in Original or Modified Versions, may be sold by itself.
-
-2) Original or Modified Versions of the Font Software may be bundled,
-redistributed and/or sold with any software, provided that each copy
-contains the above copyright notice and this license. These can be
-included either as stand-alone text files, human-readable headers or
-in the appropriate machine-readable metadata fields within text or
-binary files as long as those fields can be easily viewed by the user.
-
-3) No Modified Version of the Font Software may use the Reserved Font
-Name(s) unless explicit written permission is granted by the corresponding
-Copyright Holder. This restriction only applies to the primary font name as
-presented to the users.
-
-4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
-Software shall not be used to promote, endorse or advertise any
-Modified Version, except to acknowledge the contribution(s) of the
-Copyright Holder(s) and the Author(s) or with their explicit written
-permission.
-
-5) The Font Software, modified or unmodified, in part or in whole,
-must be distributed entirely under this license, and must not be
-distributed under any other license. The requirement for fonts to
-remain under this license does not apply to any document created
-using the Font Software.
-
-TERMINATION
-This license becomes null and void if any of the above conditions are
-not met.
-
-DISCLAIMER
-THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
-OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
-COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
-DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
-OTHER DEALINGS IN THE FONT SOFTWARE.

BIN
public/fonts/press-start-2p/PressStart2P.ttf


+ 10 - 1
resource/cdn-manifests.js

@@ -18,7 +18,8 @@ module.exports = {
     },
     {
       name: 'highlight-addons',
-      url: 'https://cdn.jsdelivr.net/combine/'
+      url:
+        'https://cdn.jsdelivr.net/combine/'
         + 'gh/highlightjs/cdn-release@9.13.0/build/languages/dockerfile.min.js,'
         + 'gh/highlightjs/cdn-release@9.13.0/build/languages/go.min.js,'
         + 'gh/highlightjs/cdn-release@9.13.0/build/languages/gradle.min.js,'
@@ -87,6 +88,14 @@ module.exports = {
         integrity: '',
       },
     },
+    {
+      name: 'Press Start 2P',
+      url: 'https://fonts.googleapis.com/css?family=Press+Start+2P',
+      groups: ['basis'],
+      args: {
+        integrity: '',
+      },
+    },
     {
       name: 'font-awesome',
       url: 'https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css',

+ 3 - 8
src/client/styles/scss/_staff_credit.scss

@@ -1,12 +1,7 @@
 // Staff Credit
 
 #staff-credit {
-  @font-face {
-    font-family: 'PressStart2P';
-    src: url(../../../../public/fonts/press-start-2p/PressStart2P.ttf) format('truetype');
-  }
-
-  font-family: 'PressStart2P', $basefont1;
+  font-family: 'Press Start 2P', $basefont1;
   color: white;
 
   .credit-curtain {
@@ -28,10 +23,10 @@
   }
 
   .dev-position {
-    font-size: 1.3em;
+    font-size: 1.2em;
   }
 
   .dev-name {
-    font-size: 2.5em;
+    font-size: 2.4em;
   }
 }