UNPKG

bdf-canvas

Version:

BDF Font drawer for Canvas API

16 lines (10 loc) 256 B
bdf-canvas ========== This library is for parsing BDF Font and drawint it to canvas. ## Usage ``` const BDFFont = require("bdf-canvas"); const ctx = canvas.getContext("2d"); const font = new BDFFont(bdfbody); font.drawText(ctx, "foobar", 10, 10); ```