Canvas Bitfont
Canvas bitfont is designed to draw bitmap fonts onto the canvas, it contains a simple (and probably bad) parser for Rob Hagemans' yaff
font format
It's still very barebones and has no tests, so I don't believe it fully conforms to the yaff
standard. It also doesn't support kerning, or other parts of the yaff standard, I believe. However, it does fulfil my needs, so I don't think I'll be working on any new features, but I may fix reported bugs if I have time, and I am accepting PRs.
Code Example
import { Font } from 'canvas-bitfont'
const myFont = await Font.load(myFontYaffSource);
myCanvas2DContext.drawImage(myFont.fillText('Hello World', '#FFFFFF').canvas, x, y);