1.0.0 • Published 3 years ago
@nodifox/nfx-ng-typeface-bebas v1.0.0
Overview
Angular library designed to easily import the Bebas font into your project. By installing this dependency and importing the font family styles you will get a nice self-hosted webfont.
Demo
You can preview the font here.
Installation
npm i -S @nodifox/nfx-ng-typeface-bebas
Usage
Import the required font style into your main scss file. Remember that only the font styles you use will be included in your proyect build.
// (400) Bebas - Regular
@import 'node_modules/@nodifox/nfx-ng-typeface-bebas/src/typefaces/bebas-regular.scss';
To simplify the import location of the font scss files you can include the typefaces into the styles preprocessor adding the dependency path to stylePreprocessorOptions in your angular.json.
{
"stylePreprocessorOptions": {
"includePaths": [
"node_modules/@nodifoc/nfx-ng-typeface-bebas/src/typefaces"
]
}
}
With the stylePreprocessorOptions set the import of each style should look like this.
// (400) Bebas - Regular
@import 'bebas-regular.scss';
And now just set the font-family, font-style and font-weight in yout scss.
font-family: 'Bebas';
font-style: normal;
font-weight: 400;
1.0.0
3 years ago