├── fonts ├── latin │ ├── railway.eot │ ├── railway.ttf │ ├── railway.woff │ └── railway.svg └── default │ ├── railway.eot │ ├── railway.ttf │ ├── railway.woff │ └── railway.svg ├── package.json ├── README.md ├── LICENSE └── index.js /fonts/latin/railway.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-railway/master/fonts/latin/railway.eot -------------------------------------------------------------------------------- /fonts/latin/railway.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-railway/master/fonts/latin/railway.ttf -------------------------------------------------------------------------------- /fonts/latin/railway.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-railway/master/fonts/latin/railway.woff -------------------------------------------------------------------------------- /fonts/default/railway.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-railway/master/fonts/default/railway.eot -------------------------------------------------------------------------------- /fonts/default/railway.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-railway/master/fonts/default/railway.ttf -------------------------------------------------------------------------------- /fonts/default/railway.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-railway/master/fonts/default/railway.woff -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "Author": "Shane Tomlinson (https://shanetomlinson.com)", 3 | "name": "connect-fonts-railway", 4 | "description": "Railway font pack for connect-fonts", 5 | "keywords": ["font", "font-face", "CSS", "connect-fonts", "railway"], 6 | "homepage": "https://github.com/shane-tomlinson/connect-fonts-railway", 7 | "licenses": [ 8 | { 9 | "covers": "software", 10 | "type": "MPL-2.0", 11 | "url": "http://mozilla.org/MPL/2.0/" 12 | }, 13 | { 14 | "covers": "fonts", 15 | "type": "OFL-1.1", 16 | "url": "http://scripts.sil.org/OFL" 17 | } 18 | ], 19 | "repository": { 20 | "type": "git", 21 | "url": "https://github.com/shane-tomlinson/connect-fonts-railway" 22 | }, 23 | "version": "0.0.1", 24 | "engines": { 25 | "node": ">= 0.4.7" 26 | }, 27 | "main": "index" 28 | } 29 | 30 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # connect-fonts-railway 2 | 3 | Railway fontpack for [connect-fonts](https://github.com/shane-tomlinson/connect-fonts). 4 | 5 | ## Usage 6 | 7 | 1. Include [connect-fonts](https://github.com/shane-tomlinson/connect-fonts) in a node module. 8 | ```js 9 | const font_middleware = require("connect-fonts"); 10 | ``` 11 | 12 | 2. Include the font packs that you want to serve. 13 | ```js 14 | const font_pack = require("connect-fonts-railway"); 15 | ``` 16 | 17 | 3. Add a middleware by calling the `setup` function. 18 | ```js 19 | app.use(font_middleware.setup({ 20 | fonts: [ font_pack ], 21 | allow_origin: "https://exampledomain.com" 22 | })); 23 | ``` 24 | 25 | 4. Add a link tag to include the font CSS. 26 | ```html 27 | 28 | ``` 29 | 30 | 31 | Available fonts: 32 | * railway 33 | 34 | Locale-optimised font sets can be served by specifying the locale in the fonts.css URL. 35 | ```html 36 | 37 | ``` 38 | 39 | Available subsets: 40 | * latin 41 | 42 | 5. Set your CSS up to use the new font by using the "Railway" font-family. 43 | ``` 44 | body { 45 | font-family: 'Railway', 'sans-serif', 'serif'; 46 | } 47 | ``` 48 | 49 | ## Font Info 50 | Railway 51 | 52 | * Copyright: Copyright (c) Justin Howes. An Unpublished work from Justin Howes., 1994. All rights reserved. 53 | 54 | Revised July 2012 (c) Greg Fleming. 55 | * Trademark: Railway is a trademark of Justin Howes. An Unpublished work from Justin Howes. 56 | * Original font source: https://github.com/GregFleming/Railway-Sans 57 | * Background information: http://typotech.blogspot.co.uk/2012/08/johnstons-railway-sans-edward-johnstons.html 58 | 59 | 60 | ## Development Info 61 | * Homepage: https://github.com/shane-tomlinson/connect-fonts-railway 62 | * Repo: https://github.com/shane-tomlinson/connect-fonts-railway 63 | 64 | ## Author 65 | * Shane Tomlinson 66 | * shane@shanetomlinson.com 67 | * stomlinson@mozilla.com 68 | * set117@yahoo.com 69 | * https://shanetomlinson.com 70 | * https://github.com/shane-tomlinson 71 | * https://github.com/stomlinson 72 | * @shane_tomlinson 73 | 74 | 75 | ## License 76 | 77 | Software: Licenced under version 2.0 of the MPL 78 | 79 | https://www.mozilla.org/MPL/ 80 | 81 | Fonts: Licensed under version 1.1 of the SIL Open Font License 82 | 83 | http://scripts.sil.org/OFL 84 | 85 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Software: Licenced under version 2.0 of the MPL 2 | 3 | https://www.mozilla.org/MPL/ 4 | 5 | Fonts: Licensed under version 1.1 of the SIL Open Font License 6 | 7 | http://scripts.sil.org/OFL 8 | 9 | ======================= 10 | 11 | This Source Code Form is subject to the terms of the Mozilla Public 12 | License, v. 2.0. If a copy of the MPL was not distributed with this file, 13 | You can obtain one at http://mozilla.org/MPL/2.0/. 14 | 15 | ====================== 16 | 17 | Copyright (c) Justin Howes. An Unpublished work from Justin Howes., 1994. All rights reserved. 18 | 19 | Revised July 2012 (c) Greg Fleming. 20 | 21 | Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries. 22 | 23 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 24 | 25 | This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL 26 | 27 | 28 | ----------------------------------------------------------- 29 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 30 | ----------------------------------------------------------- 31 | 32 | PREAMBLE 33 | The goals of the Open Font License (OFL) are to stimulate worldwide 34 | development of collaborative font projects, to support the font creation 35 | efforts of academic and linguistic communities, and to provide a free and 36 | open framework in which fonts may be shared and improved in partnership 37 | with others. 38 | 39 | The OFL allows the licensed fonts to be used, studied, modified and 40 | redistributed freely as long as they are not sold by themselves. The 41 | fonts, including any derivative works, can be bundled, embedded, 42 | redistributed and/or sold with any software provided that any reserved 43 | names are not used by derivative works. The fonts and derivatives, 44 | however, cannot be released under any other type of license. The 45 | requirement for fonts to remain under this license does not apply 46 | to any document created using the fonts or their derivatives. 47 | 48 | DEFINITIONS 49 | "Font Software" refers to the set of files released by the Copyright 50 | Holder(s) under this license and clearly marked as such. This may 51 | include source files, build scripts and documentation. 52 | 53 | "Reserved Font Name" refers to any names specified as such after the 54 | copyright statement(s). 55 | 56 | "Original Version" refers to the collection of Font Software components as 57 | distributed by the Copyright Holder(s). 58 | 59 | "Modified Version" refers to any derivative made by adding to, deleting, 60 | or substituting -- in part or in whole -- any of the components of the 61 | Original Version, by changing formats or by porting the Font Software to a 62 | new environment. 63 | 64 | "Author" refers to any designer, engineer, programmer, technical 65 | writer or other person who contributed to the Font Software. 66 | 67 | PERMISSION & CONDITIONS 68 | Permission is hereby granted, free of charge, to any person obtaining 69 | a copy of the Font Software, to use, study, copy, merge, embed, modify, 70 | redistribute, and sell modified and unmodified copies of the Font 71 | Software, subject to the following conditions: 72 | 73 | 1) Neither the Font Software nor any of its individual components, 74 | in Original or Modified Versions, may be sold by itself. 75 | 76 | 2) Original or Modified Versions of the Font Software may be bundled, 77 | redistributed and/or sold with any software, provided that each copy 78 | contains the above copyright notice and this license. These can be 79 | included either as stand-alone text files, human-readable headers or 80 | in the appropriate machine-readable metadata fields within text or 81 | binary files as long as those fields can be easily viewed by the user. 82 | 83 | 3) No Modified Version of the Font Software may use the Reserved Font 84 | Name(s) unless explicit written permission is granted by the corresponding 85 | Copyright Holder. This restriction only applies to the primary font name as 86 | presented to the users. 87 | 88 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font 89 | Software shall not be used to promote, endorse or advertise any 90 | Modified Version, except to acknowledge the contribution(s) of the 91 | Copyright Holder(s) and the Author(s) or with their explicit written 92 | permission. 93 | 94 | 5) The Font Software, modified or unmodified, in part or in whole, 95 | must be distributed entirely under this license, and must not be 96 | distributed under any other license. The requirement for fonts to 97 | remain under this license does not apply to any document created 98 | using the Font Software. 99 | 100 | TERMINATION 101 | This license becomes null and void if any of the above conditions are 102 | not met. 103 | 104 | DISCLAIMER 105 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 106 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF 107 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 108 | OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE 109 | COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 110 | INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL 111 | DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 112 | FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM 113 | OTHER DEALINGS IN THE FONT SOFTWARE. 114 | 115 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const path = require("path"); 2 | 3 | module.exports = { 4 | "root": path.join(__dirname, "fonts"), 5 | 6 | // Package info 7 | "package": { 8 | "name": "connect-fonts-railway", 9 | "homepage": "https://github.com/shane-tomlinson/connect-fonts-railway", 10 | "repourl": "https://github.com/shane-tomlinson/connect-fonts-railway", 11 | "bugsurl": false 12 | }, 13 | 14 | // Package author info 15 | "author": { 16 | "name": "Shane Tomlinson", 17 | "emails": "shane@shanetomlinson.com,stomlinson@mozilla.com,set117@yahoo.com", 18 | "urls": "https://shanetomlinson.com", 19 | "githubs": "https://github.com/shane-tomlinson,https://github.com/stomlinson", 20 | "twitter": "@shane_tomlinson" 21 | }, 22 | 23 | // package license info 24 | "license": { 25 | "name": "SIL Open Font License", 26 | "version": "1.1", 27 | "abbreviation": "OFL-1.1", 28 | "url": "http://scripts.sil.org/OFL", 29 | "text": "Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.\n\nThis Font Software is licensed under the SIL Open Font License, Version 1.1.\n\nThis license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL\n\n\n-----------------------------------------------------------\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\n-----------------------------------------------------------\n\nPREAMBLE\nThe goals of the Open Font License (OFL) are to stimulate worldwide\ndevelopment of collaborative font projects, to support the font creation\nefforts of academic and linguistic communities, and to provide a free and\nopen framework in which fonts may be shared and improved in partnership\nwith others.\n\nThe OFL allows the licensed fonts to be used, studied, modified and\nredistributed freely as long as they are not sold by themselves. The\nfonts, including any derivative works, can be bundled, embedded, \nredistributed and/or sold with any software provided that any reserved\nnames are not used by derivative works. The fonts and derivatives,\nhowever, cannot be released under any other type of license. The\nrequirement for fonts to remain under this license does not apply\nto any document created using the fonts or their derivatives.\n\nDEFINITIONS\n\"Font Software\" refers to the set of files released by the Copyright\nHolder(s) under this license and clearly marked as such. This may\ninclude source files, build scripts and documentation.\n\n\"Reserved Font Name\" refers to any names specified as such after the\ncopyright statement(s).\n\n\"Original Version\" refers to the collection of Font Software components as\ndistributed by the Copyright Holder(s).\n\n\"Modified Version\" refers to any derivative made by adding to, deleting,\nor substituting -- in part or in whole -- any of the components of the\nOriginal Version, by changing formats or by porting the Font Software to a\nnew environment.\n\n\"Author\" refers to any designer, engineer, programmer, technical\nwriter or other person who contributed to the Font Software.\n\nPERMISSION & CONDITIONS\nPermission is hereby granted, free of charge, to any person obtaining\na copy of the Font Software, to use, study, copy, merge, embed, modify,\nredistribute, and sell modified and unmodified copies of the Font\nSoftware, subject to the following conditions:\n\n1) Neither the Font Software nor any of its individual components,\nin Original or Modified Versions, may be sold by itself.\n\n2) Original or Modified Versions of the Font Software may be bundled,\nredistributed and/or sold with any software, provided that each copy\ncontains the above copyright notice and this license. These can be\nincluded either as stand-alone text files, human-readable headers or\nin the appropriate machine-readable metadata fields within text or\nbinary files as long as those fields can be easily viewed by the user.\n\n3) No Modified Version of the Font Software may use the Reserved Font\nName(s) unless explicit written permission is granted by the corresponding\nCopyright Holder. This restriction only applies to the primary font name as\npresented to the users.\n\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font\nSoftware shall not be used to promote, endorse or advertise any\nModified Version, except to acknowledge the contribution(s) of the\nCopyright Holder(s) and the Author(s) or with their explicit written\npermission.\n\n5) The Font Software, modified or unmodified, in part or in whole,\nmust be distributed entirely under this license, and must not be\ndistributed under any other license. The requirement for fonts to\nremain under this license does not apply to any document created\nusing the Font Software.\n\nTERMINATION\nThis license becomes null and void if any of the above conditions are\nnot met.\n\nDISCLAIMER\nTHE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\nOF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\nCOPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nINCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\nDAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\nOTHER DEALINGS IN THE FONT SOFTWARE.\n" 30 | }, 31 | 32 | // Common font information 33 | "font_common": { 34 | "names": "railway", 35 | "family": "Railway", 36 | "copyright": "Copyright (c) Justin Howes. An Unpublished work from Justin Howes., 1994. All rights reserved. Revised July 2012 (c) Greg Fleming.", 37 | "url_vendor": "https://github.com/GregFleming/Railway-Sans", 38 | "designer": "Justin Howes", 39 | "url_designer": "http://typotech.blogspot.co.uk/2012/08/johnstons-railway-sans-edward-johnstons.html", 40 | "trademark": "Railway is a trademark of Justin Howes. An Unpublished work from Justin Howes." 41 | }, 42 | 43 | 44 | // where to find a locale's fonts in the fonts directory 45 | "locale-to-subdirs": { 46 | }, 47 | 48 | // what font types are enabled and what are the extensions of 49 | // the font files. 50 | // 51 | // valid types are embedded-opentype, woff, truetype, svg 52 | "enabled-types": [ "eot", "woff", "ttf", "svg" ], 53 | 54 | // The fonts. The name of the font must be the same as the font 55 | // in the fonts directory. 56 | "fonts": { 57 | "railway": { 58 | "fontFamily": "Railway", 59 | "fontStyle": "normal", 60 | "fontWeight": "400", 61 | "local": [ "Railway", "Railway" ] 62 | } 63 | } 64 | }; 65 | -------------------------------------------------------------------------------- /fonts/latin/railway.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 11 | 12 | 13 | 15 | 17 | 19 | 22 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 35 | 36 | 38 | 40 | 41 | 43 | 45 | 46 | 49 | 51 | 52 | 53 | 54 | 55 | 56 | 58 | 64 | 65 | 67 | 69 | 71 | 72 | 73 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 84 | 86 | 88 | 90 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 107 | 109 | 111 | 113 | 115 | 116 | 120 | 121 | 122 | 123 | 124 | 125 | 127 | 128 | 130 | 132 | 134 | 135 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | -------------------------------------------------------------------------------- /fonts/default/railway.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 11 | 12 | 13 | 15 | 17 | 19 | 22 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 35 | 36 | 38 | 40 | 41 | 43 | 45 | 46 | 49 | 51 | 52 | 53 | 54 | 55 | 56 | 58 | 64 | 65 | 67 | 69 | 71 | 72 | 73 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 84 | 86 | 88 | 90 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 107 | 109 | 111 | 113 | 115 | 116 | 120 | 121 | 122 | 123 | 124 | 125 | 127 | 128 | 130 | 132 | 134 | 135 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | --------------------------------------------------------------------------------