1.0.5 • Published 1 year ago

elderjs-font-redacted-script v1.0.5

Weekly downloads
-
License
(MIT AND OFL-1.1)
Repository
-
Last release
1 year ago

elderjs-font-redacted-script

Imports the light, normal, and bold variants of Christian Nath's Redacted Script font into an ElderJS project. (The non-script style Redacted font is not included nor is the Redacted Script "wght" variable font included.)

Install and usage

Install the package:

$ npm i elderjs-font-redacted-script

The fonts will appear in your ElderJS assets directory:

$ ls -l assets/font/redacted-script*

You may move these files around and even delete them. They are copied to this location upon install. If desired the default installation path may be changed. See the Custom asset installation path section for more detailed instructions.

Include the appropriate @font-face declarations in your stylesheet, such as the snippet below:

@font-face
  {
  font-family: "Redacted Script";
  src: url("/font/redacted-script-light.otf")   format("opentype"),
       url("/font/redacted-script-light.ttf")   format("truetype"),
       url("/font/redacted-script-light.woff2") format("woff2");
  font-weight: 1 299;
  }

@font-face
  {
  font-family: "Redacted Script";
  src: url("/font/redacted-script-regular.otf")   format("opentype"),
       url("/font/redacted-script-regular.ttf")   format("truetype"),
       url("/font/redacted-script-regular.woff2") format("woff2");
  font-weight: 300 699;
  }

@font-face
  {
  font-family: "Redacted Script";
  src: url("/font/redacted-script-bold.otf")   format("opentype"),
       url("/font/redacted-script-bold.ttf")   format("truetype"),
       url("/font/redacted-script-bold.woff2") format("woff2");
  font-weight: 700 1000;
  }

and the Redacted Script font should be available for use:

body
  {
  font-family: Redacted Script;
  }

Custom asset installation path

If the assets/font path is undesirable you may set the path via a package.json key:

{
  /* ... */
  "elderjs-font-redacted-script": {
    "font-install-path": "assets/font"
  }
}

License and copyright

The Redacted Script font itself is copyright (C) 2013 Christian Naths. It is redistributed with this package while conforming to the SIL OFL v1.1 license. The remaining source code of this package is copyright (C) 2023 Chris Thornton and is licensed under the MIT license.

Redacted Script font

Copyright (C) 2013, Christian Naths christiannaths@gmail.com (christiannaths.com)

This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is included in this repository (COPYING-font file), and is also available with a FAQ at: http://scripts.sil.org/OFL

Remaining source code

Copyright (C) 2023, Chris Thornton chris@cmthornton.com (cmthornton.com)

The source code in this repository, excluding the Redacted Script font, is licensed under the MIT license. See COPYING for more information.

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago