font-loading

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

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

npm i font-loading

Metadata

  • MIT
  • Whatever
  • Dalibor Gogic
  • released 9/14/2018

Downloads

Maintainers