1.1.0 • Published 6 years ago

font-loading v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

font-loading wip

Nuxt.js module for Font Loading Module Level 3 used for dynamically loading font resources.

Note: Font Loading Module Level 3 is still under development in some browsers.

Setup

  • Add font-loading as dependency
  • Add font-loading to modules section of nuxt.config.js
{
  modules: [
    ['font-loading', {
      fontName: '',
      fontPath: ''
    }]
  ]
}

API

fontFamily

Type: String

Default: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif

fontName

Type: String

fontPath

Type: String

fontOptions.style

Type: String

Default: normal

fontOptions.weight

Type: String

Default: 400

License

MIT

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago