A plugin that loads font files and converts them to Rune.Path objects.
First download the latest release. Then include the rune.font.js
file after your rune.js
file in your HTML file.
<head>
<script src="rune.js"></script>
<script src="rune.font.js"></script>
</head>
npm install rune.font.js
Then require the rune.font.js
module in your code, along with your rune.js
module (if needed).
var Rune = require('rune.js');
var Font = require('rune.font.js');
Look at the Typography section in the Rune.js examples.
Font parsing functionality provided by the awesome opentype.js.