connect-fonts-sourcesanspro
v0.0.3
Published
Source Sans Pro font pack for connect-fonts
Downloads
13
Readme
connect-fonts-sourcesanspro
A connect-fonts fontpack for the SourceSansPro font.
Usage
- Include connect-fonts in a node module.
const font_middleware = require("connect-fonts");
- Include the font packs that you want to serve.
const sourcesanspro = require("connect-fonts-sourcesanspro");
- Add a middleware by calling the
setup
function.
app.use(font_middleware.setup({
fonts: [ sourcesanspro ],
allow_origin: "https://exampledomain.com"
}));
- Add a link tag to include the font CSS.
<link href="/en/sourcesanspro-regular/fonts.css" type="text/css" rel="stylesheet"/ >
- Set your CSS up to use the new font by using the "Source Sans Pro" font-family.
body {
font-family: 'Source Sans Pro', 'sans-serif', 'serif';
}
Author
- Shane Tomlinson
- shane@shanetomlinson.com
- stomlinson@mozilla.com
- set117@yahoo.com
- https://shanetomlinson.com
- http://github.com/stomlinson
- http://github.com/shane-tomlinson
- @shane_tomlinson
Credits
Original font set downloaded from fontsquirrel.com. Source Sans Pro created by Adobe
License
This software is dual licenced under version 2.0 of the MPL and version 1.1 of the SIL Open Font License.
https://www.mozilla.org/MPL/
http://scripts.sil.org/OFL