Skip to content

cho45/bdfcanvas

Repository files navigation

bdf-canvas

This library is for parsing BDF Font and drawint it to canvas.

Usage

const BDFFont = require("bdf-canvas").BDFFont;

const ctx = canvas.getContext("2d");

const font = new BDFFont(bdfbody);
font.drawText(ctx, "foobar", 10, 10);