Includes the Redacted Script font in an ElderJS project
Imports
the light, normal, and bold variants of
[Christian Nath's _Redacted Script_ font][christiannaths-redacted-font-repo]
into an [ElderJS][elderjs-repo] project.
(The non-script style _Redacted_ font is not included nor is the _Redacted
Script_ "wght" variable font included.)
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;
}
If the assets/font path is undesirable you may set the path via a package.json key:
`package.json`
{
/ ... /
"elderjs-font-redacted-script": {
"font-install-path": "assets/font"
}
}
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.
Copyright (C) 2013, Christian Naths
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
Copyright (C) 2023, Chris Thornton
The source code in this repository, excluding the _Redacted Script_ font, is
licensed under the MIT license.
See COPYING` for more information.
[christiannaths-redacted-font-repo]: https://github.com/christiannaths/redacted-font
[elderjs-repo]: https://github.com/elderjs/elderjs