connect-fonts-lato

0.0.1 • Public • Published

connect-fonts-lato

Lato 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-lato");
  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="/lato-black/fonts.css" type="text/css" rel="stylesheet">

Multiple fonts from the family can be included by using a comma separated list of fonts:

<link href="/lato-black,lato-blackitalic,lato-bold,lato-bolditalic,lato-hairline,lato-hairlineitalic,lato-italic,lato-light,lato-lightitalic,lato-regular/fonts.css" type="text/css" rel="stylesheet">

Available fonts:

  • lato-black
  • lato-blackitalic
  • lato-bold
  • lato-bolditalic
  • lato-hairline
  • lato-hairlineitalic
  • lato-italic
  • lato-light
  • lato-lightitalic
  • lato-regular

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

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

Available subsets:

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

Font Info

Lato

  • Description: Lato is a sanserif typeface family designed in the Summer 2010 by Warsaw-based designer Lukasz Dziedzic ("Lato" means "Summer" in Polish). It tries to carefully balance some potentially conflicting priorities: it should seem quite "transparent" when used in body text but would display some original traits when used in larger sizes. The classical proportions, particularly visible in the uppercase, give the letterforms familiar harmony and elegance. At the same time, its sleek sanserif look makes evident the fact that Lato was designed in 2010, even though it does not follow any current trend. The semi-rounded details of the letters give Lato a feeling of warmth, while the strong structure provides stability and seriousness.
  • Copyright: Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1.
  • Trademark: Lato is a trademark of tyPoland Lukasz Dziedzic.
  • Designer: Lukasz Dziedzic
  • Designer URL: http://www.typoland.com/designers/Lukasz_Dziedzic/
  • Vendor: tyPoland Lukasz Dziedzic
  • Vendor URL: http://www.typoland.com/

Development Info

Author

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

Readme

Keywords

none

Package Sidebar

Install

npm i connect-fonts-lato

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • stomlinson