Skip to content

daliborgogic/font-loading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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