connect-fonts-drsugiyama
v0.0.2
Published
Dr Sugiyama font pack for connect-fonts
Readme
connect-fonts-drsugiyama
A connect-fonts fontpack for the Dr Sugiyama 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 drsugiyama = require("connect-fonts-drsugiyama");- Add a middleware by calling the
setupfunction.
app.use(font_middleware.setup({
fonts: [ drsugiyama ],
allow_origin: "https://exampledomain.com"
}));- Add a link tag to include the font CSS.
<link href="/en/drsugiyama/fonts.css" type="text/css" rel="stylesheet"/ >- Set your CSS up to use the new font by using the "Dr Sugiyama" font-family.
body {
font-family: 'Dr Sugiyama', 'sans-serif', 'serif';
}Author
- Shane Tomlinson
- [email protected]
- [email protected]
- [email protected]
- https://shanetomlinson.com
- http://github.com/stomlinson
- http://github.com/shane-tomlinson
- @shane_tomlinson
Credits
Original font set downloaded from Google Font Directory. Dr Sugiyama created by Alejandro Paul
License
This software is licenced under version 2.0 of the MPL
https://www.mozilla.org/MPL/
Fonts are licensed under version 1.1 of the SIL Open Font License
http://scripts.sil.org/OFL
