(not to be confused with Derakkuma from maimai)
A small Fontobene parser for web apps requiring vector fonts, written in Typescript. The Fontobene engine behind CompassCAD NEXT. Named after Derakkuma from maimai. Try it out, online, here.
Using it is just as simple as one, two, three! Just:
npm i derakuma
and:
const { DerakumaParser } = require('derakuma');
const font = new DerakumaParser('/path/to.bene');
font.getGlyph('a');
// Should return a series of PD, MV and PU. Those will be your drawing commands!If you want a more in-depth coverage on how to implement, refer to the Getting Started page on the wiki. For an even more in-depth coverage, including documentation of all the interfaces, types and functions, refer to the List of Functions (for advanced users)
MIT
