@agilo/font-loader

0.2.1 • Public • Published

Font Loader

a lightweight font loader

Install

With npm installed, run

npm install @agilo/font-loader

Usage

Load font via CSS @font-face or any other available method then:

import fontLoader from '@agilo/font-loader';
const font = fontLoader( {
	fontFamily: 'FontFamily',
	fontWeight: 700,
	fontStyle: 'italic',
	timeout: 5000,
} );

font.load()
	.then( () => console.log( 'FontFamily is loaded!' ) )
	.catch( (error) => console.error( error ); );

License

GNU General Public License v2.0

Readme

Keywords

none

Package Sidebar

Install

npm i @agilo/font-loader

Weekly Downloads

4

Version

0.2.1

License

GPL-2.0-only

Unpacked Size

50.2 kB

Total Files

6

Last publish

Collaborators

  • ilimic
  • josipmatichr
  • anteprimorac
  • alenvuletic