├── fonts ├── default │ ├── mavenpro-bold.eot │ ├── mavenpro-bold.ttf │ ├── mavenpro-black.eot │ ├── mavenpro-black.ttf │ ├── mavenpro-black.woff │ ├── mavenpro-bold.woff │ ├── mavenpro-medium.eot │ ├── mavenpro-medium.ttf │ ├── mavenpro-medium.woff │ ├── mavenpro-regular.eot │ ├── mavenpro-regular.ttf │ ├── mavenpro-regular.woff │ ├── mavenpro-black.svg │ ├── mavenpro-bold.svg │ ├── mavenpro-regular.svg │ └── mavenpro-medium.svg └── latin │ ├── mavenpro-black.eot │ ├── mavenpro-black.ttf │ ├── mavenpro-black.woff │ ├── mavenpro-bold.eot │ ├── mavenpro-bold.ttf │ ├── mavenpro-bold.woff │ ├── mavenpro-medium.eot │ ├── mavenpro-medium.ttf │ ├── mavenpro-medium.woff │ ├── mavenpro-regular.eot │ ├── mavenpro-regular.ttf │ └── mavenpro-regular.woff ├── package.json ├── index.js ├── README.md └── LICENSE /fonts/default/mavenpro-bold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/default/mavenpro-bold.eot -------------------------------------------------------------------------------- /fonts/default/mavenpro-bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/default/mavenpro-bold.ttf -------------------------------------------------------------------------------- /fonts/latin/mavenpro-black.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/latin/mavenpro-black.eot -------------------------------------------------------------------------------- /fonts/latin/mavenpro-black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/latin/mavenpro-black.ttf -------------------------------------------------------------------------------- /fonts/latin/mavenpro-black.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/latin/mavenpro-black.woff -------------------------------------------------------------------------------- /fonts/latin/mavenpro-bold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/latin/mavenpro-bold.eot -------------------------------------------------------------------------------- /fonts/latin/mavenpro-bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/latin/mavenpro-bold.ttf -------------------------------------------------------------------------------- /fonts/latin/mavenpro-bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/latin/mavenpro-bold.woff -------------------------------------------------------------------------------- /fonts/latin/mavenpro-medium.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/latin/mavenpro-medium.eot -------------------------------------------------------------------------------- /fonts/latin/mavenpro-medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/latin/mavenpro-medium.ttf -------------------------------------------------------------------------------- /fonts/default/mavenpro-black.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/default/mavenpro-black.eot -------------------------------------------------------------------------------- /fonts/default/mavenpro-black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/default/mavenpro-black.ttf -------------------------------------------------------------------------------- /fonts/default/mavenpro-black.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/default/mavenpro-black.woff -------------------------------------------------------------------------------- /fonts/default/mavenpro-bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/default/mavenpro-bold.woff -------------------------------------------------------------------------------- /fonts/default/mavenpro-medium.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/default/mavenpro-medium.eot -------------------------------------------------------------------------------- /fonts/default/mavenpro-medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/default/mavenpro-medium.ttf -------------------------------------------------------------------------------- /fonts/latin/mavenpro-medium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/latin/mavenpro-medium.woff -------------------------------------------------------------------------------- /fonts/latin/mavenpro-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/latin/mavenpro-regular.eot -------------------------------------------------------------------------------- /fonts/latin/mavenpro-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/latin/mavenpro-regular.ttf -------------------------------------------------------------------------------- /fonts/latin/mavenpro-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/latin/mavenpro-regular.woff -------------------------------------------------------------------------------- /fonts/default/mavenpro-medium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/default/mavenpro-medium.woff -------------------------------------------------------------------------------- /fonts/default/mavenpro-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/default/mavenpro-regular.eot -------------------------------------------------------------------------------- /fonts/default/mavenpro-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/default/mavenpro-regular.ttf -------------------------------------------------------------------------------- /fonts/default/mavenpro-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-tomlinson/connect-fonts-mavenpro/master/fonts/default/mavenpro-regular.woff -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Shane Tomlinson (https://shanetomlinson.com)", 3 | "name": "connect-fonts-mavenpro", 4 | "description": "Maven Pro font pack for connect-fonts", 5 | "keywords": ["font", "font-face", "CSS", "connect-fonts", "mavenpro-black", "mavenpro-bold", "mavenpro-medium", "mavenpro-regular"], 6 | "homepage": "https://github.com/shane-tomlinson/connect-fonts-mavenpro", 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-mavenpro.git" 22 | }, 23 | "bugs": { 24 | "url": "https://github.com/shane-tomlinson/connect-fonts-mavenpro/issues" 25 | }, 26 | "version": "0.0.2", 27 | "engines": { 28 | "node": ">= 0.4.7" 29 | }, 30 | "main": "index" 31 | } 32 | 33 | -------------------------------------------------------------------------------- /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-mavenpro", 9 | "homepage": "https://github.com/shane-tomlinson/connect-fonts-mavenpro", 10 | "repourl": "https://github.com/shane-tomlinson/connect-fonts-mavenpro.git", 11 | "bugsurl": "https://github.com/shane-tomlinson/connect-fonts-mavenpro/issues" 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", 20 | "twitter": "@shane_tomlinson" 21 | }, 22 | 23 | 24 | // Common font information 25 | "font_common": { 26 | "names": "mavenpro-black,mavenpro-bold,mavenpro-medium,mavenpro-regular", 27 | "family": "Maven Pro", 28 | "copyright": "Copyright (c) 2011 by Vissol Ltd. All rights reserved." 29 | }, 30 | 31 | 32 | // where to find a locale's fonts in the fonts directory 33 | "locale-to-subdirs": { 34 | }, 35 | 36 | // what font types are enabled and what are the extensions of 37 | // the font files. 38 | // 39 | // valid types are embedded-opentype, woff, truetype, svg 40 | "enabled-types": [ "eot", "woff", "ttf", "svg" ], 41 | 42 | // The fonts. The name of the font must be the same as the font 43 | // in the fonts directory. 44 | "fonts": { 45 | "mavenpro-black": { 46 | "fontFamily": "Maven Pro", 47 | "fontStyle": "normal", 48 | "fontWeight": "900", 49 | "local": [ "Maven Pro Black", "MavenProBlack" ] 50 | }, 51 | "mavenpro-bold": { 52 | "fontFamily": "Maven Pro", 53 | "fontStyle": "normal", 54 | "fontWeight": "700", 55 | "local": [ "Maven Pro Bold", "MavenProBold" ] 56 | }, 57 | "mavenpro-medium": { 58 | "fontFamily": "Maven Pro", 59 | "fontStyle": "normal", 60 | "fontWeight": "500", 61 | "local": [ "Maven Pro Medium", "MavenProMedium" ] 62 | }, 63 | "mavenpro-regular": { 64 | "fontFamily": "Maven Pro", 65 | "fontStyle": "normal", 66 | "fontWeight": "400", 67 | "local": [ "Maven Pro Regular", "MavenProRegular" ] 68 | } 69 | } 70 | }; 71 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # connect-fonts-mavenpro 2 | 3 | Maven Pro 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-mavenpro"); 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 | Multiple fonts from the family can be included by using a comma separated list of fonts: 31 | ```html 32 | 33 | ``` 34 | 35 | Available fonts: 36 | * mavenpro-black 37 | * mavenpro-bold 38 | * mavenpro-medium 39 | * mavenpro-regular 40 | 41 | Locale-optimised font sets can be served by specifying the locale in the fonts.css URL. 42 | ```html 43 | 44 | ``` 45 | 46 | Available subsets: 47 | * latin 48 | 49 | 5. Set your CSS up to use the new font by using the "Maven Pro" font-family. 50 | ``` 51 | body { 52 | font-family: 'Maven Pro', 'sans-serif', 'serif'; 53 | } 54 | ``` 55 | 56 | ## Font Info 57 | Maven Pro 58 | 59 | * Copyright: Copyright (c) 2011 by Vissol Ltd. All rights reserved. 60 | 61 | ## Development Info 62 | * Homepage: https://github.com/shane-tomlinson/connect-fonts-mavenpro 63 | * Repo: https://github.com/shane-tomlinson/connect-fonts-mavenpro.git 64 | * Bugs: https://github.com/shane-tomlinson/connect-fonts-mavenpro/issues 65 | 66 | ## Author 67 | * Shane Tomlinson 68 | * shane@shanetomlinson.com 69 | * stomlinson@mozilla.com 70 | * set117@yahoo.com 71 | * https://shanetomlinson.com 72 | * https://github.com/shane-tomlinson 73 | * @shane_tomlinson 74 | 75 | 76 | ## License 77 | 78 | Software: Licenced under version 2.0 of the MPL 79 | 80 | https://www.mozilla.org/MPL/ 81 | 82 | Fonts: Licensed under version 1.1 of the SIL Open Font License 83 | 84 | http://scripts.sil.org/OFL 85 | 86 | -------------------------------------------------------------------------------- /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 OFL 6 | 7 | https://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) 2011, Joe Prince, Vissol Ltd. (http://www.vissol.co.uk/mavenpro/) 18 | with Reserved Font Name "Maven Pro". 19 | 20 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 21 | This license is copied below, and is also available with a FAQ at: 22 | http://scripts.sil.org/OFL 23 | 24 | 25 | ----------------------------------------------------------- 26 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 27 | ----------------------------------------------------------- 28 | 29 | PREAMBLE 30 | The goals of the Open Font License (OFL) are to stimulate worldwide 31 | development of collaborative font projects, to support the font creation 32 | efforts of academic and linguistic communities, and to provide a free and 33 | open framework in which fonts may be shared and improved in partnership 34 | with others. 35 | 36 | The OFL allows the licensed fonts to be used, studied, modified and 37 | redistributed freely as long as they are not sold by themselves. The 38 | fonts, including any derivative works, can be bundled, embedded, 39 | redistributed and/or sold with any software provided that any reserved 40 | names are not used by derivative works. The fonts and derivatives, 41 | however, cannot be released under any other type of license. The 42 | requirement for fonts to remain under this license does not apply 43 | to any document created using the fonts or their derivatives. 44 | 45 | DEFINITIONS 46 | "Font Software" refers to the set of files released by the Copyright 47 | Holder(s) under this license and clearly marked as such. This may 48 | include source files, build scripts and documentation. 49 | 50 | "Reserved Font Name" refers to any names specified as such after the 51 | copyright statement(s). 52 | 53 | "Original Version" refers to the collection of Font Software components as 54 | distributed by the Copyright Holder(s). 55 | 56 | "Modified Version" refers to any derivative made by adding to, deleting, 57 | or substituting -- in part or in whole -- any of the components of the 58 | Original Version, by changing formats or by porting the Font Software to a 59 | new environment. 60 | 61 | "Author" refers to any designer, engineer, programmer, technical 62 | writer or other person who contributed to the Font Software. 63 | 64 | PERMISSION & CONDITIONS 65 | Permission is hereby granted, free of charge, to any person obtaining 66 | a copy of the Font Software, to use, study, copy, merge, embed, modify, 67 | redistribute, and sell modified and unmodified copies of the Font 68 | Software, subject to the following conditions: 69 | 70 | 1) Neither the Font Software nor any of its individual components, 71 | in Original or Modified Versions, may be sold by itself. 72 | 73 | 2) Original or Modified Versions of the Font Software may be bundled, 74 | redistributed and/or sold with any software, provided that each copy 75 | contains the above copyright notice and this license. These can be 76 | included either as stand-alone text files, human-readable headers or 77 | in the appropriate machine-readable metadata fields within text or 78 | binary files as long as those fields can be easily viewed by the user. 79 | 80 | 3) No Modified Version of the Font Software may use the Reserved Font 81 | Name(s) unless explicit written permission is granted by the corresponding 82 | Copyright Holder. This restriction only applies to the primary font name as 83 | presented to the users. 84 | 85 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font 86 | Software shall not be used to promote, endorse or advertise any 87 | Modified Version, except to acknowledge the contribution(s) of the 88 | Copyright Holder(s) and the Author(s) or with their explicit written 89 | permission. 90 | 91 | 5) The Font Software, modified or unmodified, in part or in whole, 92 | must be distributed entirely under this license, and must not be 93 | distributed under any other license. The requirement for fonts to 94 | remain under this license does not apply to any document created 95 | using the Font Software. 96 | 97 | TERMINATION 98 | This license becomes null and void if any of the above conditions are 99 | not met. 100 | 101 | DISCLAIMER 102 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 103 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF 104 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 105 | OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE 106 | COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 107 | INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL 108 | DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 109 | FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM 110 | OTHER DEALINGS IN THE FONT SOFTWARE. 111 | 112 | -------------------------------------------------------------------------------- /fonts/default/mavenpro-black.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 11 | 12 | 13 | 14 | 16 | 18 | 20 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 37 | 38 | 40 | 42 | 43 | 45 | 47 | 48 | 49 | 50 | 51 | 52 | 54 | 58 | 59 | 61 | 63 | 64 | 65 | 66 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 77 | 78 | 80 | 81 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 98 | 100 | 101 | 103 | 105 | 106 | 108 | 109 | 110 | 111 | 112 | 113 | 115 | 116 | 117 | 119 | 121 | 122 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 133 | 134 | 136 | 138 | 139 | 140 | 141 | -------------------------------------------------------------------------------- /fonts/default/mavenpro-bold.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 11 | 12 | 13 | 14 | 16 | 18 | 20 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 34 | 35 | 37 | 39 | 40 | 42 | 44 | 45 | 48 | 50 | 51 | 52 | 53 | 54 | 55 | 57 | 61 | 62 | 64 | 66 | 67 | 68 | 69 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 80 | 81 | 83 | 84 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 101 | 103 | 104 | 106 | 108 | 109 | 111 | 112 | 113 | 114 | 115 | 116 | 118 | 119 | 120 | 122 | 124 | 125 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 136 | 137 | 139 | 141 | 142 | 143 | 144 | -------------------------------------------------------------------------------- /fonts/default/mavenpro-regular.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 11 | 12 | 13 | 14 | 16 | 18 | 21 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 35 | 36 | 37 | 39 | 40 | 42 | 45 | 46 | 49 | 51 | 52 | 53 | 54 | 55 | 56 | 58 | 62 | 63 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 81 | 83 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 100 | 102 | 104 | 106 | 108 | 109 | 111 | 112 | 113 | 114 | 115 | 116 | 118 | 119 | 121 | 123 | 125 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 137 | 138 | 140 | 142 | 143 | 144 | 145 | -------------------------------------------------------------------------------- /fonts/default/mavenpro-medium.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 11 | 12 | 13 | 14 | 16 | 18 | 20 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 34 | 35 | 36 | 38 | 39 | 41 | 43 | 44 | 46 | 48 | 49 | 50 | 51 | 52 | 53 | 55 | 59 | 60 | 62 | 64 | 65 | 66 | 67 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 78 | 79 | 82 | 83 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 100 | 102 | 104 | 106 | 108 | 109 | 111 | 112 | 113 | 114 | 115 | 116 | 118 | 119 | 121 | 123 | 125 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 137 | 138 | 140 | 142 | 143 | 144 | 145 | --------------------------------------------------------------------------------