https://github.com/runemadsen/rune.font.js
Plugin for Rune.js that loads font files and converts them to Rune.Path
https://github.com/runemadsen/rune.font.js
Last synced: 2 months ago
JSON representation
Plugin for Rune.js that loads font files and converts them to Rune.Path
- Host: GitHub
- URL: https://github.com/runemadsen/rune.font.js
- Owner: runemadsen
- License: mit
- Created: 2015-10-16T20:17:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-28T07:24:38.000Z (over 7 years ago)
- Last Synced: 2025-04-01T21:51:58.513Z (2 months ago)
- Language: JavaScript
- Homepage: http://runemadsen.github.io/rune.js/
- Size: 236 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Rune.Font.js
A plugin that loads font files and converts them to Rune.Path objects.
## Using in the browser
First download the [latest release](https://github.com/runemadsen/rune.font.js/releases/latest). Then include the `rune.font.js` file after your `rune.js` file in your HTML file.
```html
```
## Using in node
`npm install rune.font.js`
Then require the `rune.font.js` module in your code, along with your `rune.js` module (if needed).
```js
var Rune = require('rune.js');
var Font = require('rune.font.js');
```## Examples
Look at the [Typography section](http://printingcode.runemadsen.com/examples/#typography) in the Rune.js examples.
## Credits
Font parsing functionality provided by the awesome [opentype.js](https://github.com/nodebox/opentype.js).