Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daliborgogic/font-loading
Nuxt.js module for Font Loading Module Level 3.
https://github.com/daliborgogic/font-loading
font font-loading module nuxt
Last synced: 22 days ago
JSON representation
Nuxt.js module for Font Loading Module Level 3.
- Host: GitHub
- URL: https://github.com/daliborgogic/font-loading
- Owner: daliborgogic
- Created: 2018-09-13T19:31:04.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-11T12:10:39.000Z (almost 3 years ago)
- Last Synced: 2024-10-10T12:10:26.552Z (about 1 month ago)
- Topics: font, font-loading, module, nuxt
- Language: JavaScript
- Homepage: https://www.w3.org/TR/css-font-loading-3/
- Size: 146 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# font-loading [wip]
> [Nuxt.js](https://github.com/nuxt/nuxt.js) module for [Font Loading Module Level 3](https://www.w3.org/TR/css-font-loading-3/) used for dynamically loading font resources.
Note: Font Loading Module Level 3 is still [under development in some browsers](http://caniuse.com/#feat=font-loading).
## Setup
- Add ```font-loading``` as dependency
- Add ```font-loading``` to modules section of nuxt.config.js```javascript
{
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](https://opensource.org/licenses/MIT)