Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including connect-fonts-drsugiyama with all npm packages installed. Try it out:

var connectFontsDrsugiyama = require("connect-fonts-drsugiyama")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

connect-fonts-drsugiyama v0.0.2

Dr Sugiyama font pack for connect-fonts

connect-fonts-drsugiyama

Dr Sugiyama fontpack for connect-fonts.

Usage

  1. Include connect-fonts in a node module.
const font_middleware = require("connect-fonts");
  1. Include the font packs that you want to serve.
const font_pack  = require("connect-fonts-drsugiyama");
  1. Add a middleware by calling the setup function.
    app.use(font_middleware.setup({
      fonts: [ font_pack ],
      allow_origin: "https://exampledomain.com"
    }));
  1. Add a link tag to include the font CSS.
<link href="/drsugiyama-regular/fonts.css" type="text/css" rel="stylesheet"/ >

Available fonts:

  • drsugiyama-regular

Locale-optimised font sets can be served by specifying the locale in the fonts.css URL.

<link href="/latin/drsugiyama-regular/fonts.css" type="text/css" rel="stylesheet"/ >

Available subsets:

  • latin
  1. Set your CSS up to use the new font by using the "Dr Sugiyama" font-family.
    body {
      font-family: 'Dr Sugiyama', 'sans-serif', 'serif';
    }

Font Info

Dr Sugiyama

  • Copyright: Copyright (c) 2004 Alejandro Paul (sudtipos@sudtipos.com), with Reserved Font Name "Dr Sujiyama"
  • Trademark: Dr Sujiyama is a trademark of Alejandro Paul.
  • Designer: Alejandro Paul
  • Designer URL: http://www.sudtipos.com
  • Vendor: Alejandro Paul
  • Vendor URL: http://www.sudtipos.com

Development Info

  • Homepage: https://github.com/shane-tomlinson/connect-fonts-drsugiyama
  • Repo: https://github.com/shane-tomlinson/connect-fonts-drsugiyama

Author

  • Shane Tomlinson
  • shane@shanetomlinson.com
  • stomlinson@mozilla.com
  • set117@yahoo.com
  • https://shanetomlinson.com
  • https://github.com/shane-tomlinson
  • https://github.com/stomlinson
  • @shane_tomlinson

License

Software: Licenced under version 2.0 of the MPL

https://www.mozilla.org/MPL/

Fonts: Licensed under version 1.1 of the SIL Open Font License

http://scripts.sil.org/OFL

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free