Skip to content

1.1.0

Latest
Compare
Choose a tag to compare
@daliborgogic daliborgogic released this 26 Aug 17:49
· 8 commits to master since this release
cd7384b

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