JSFiddle - React, Tailwind, and code Playground
HTML
<canvas width=512 height=512></canvas>
JavaScript
// All possible combinations for a 2x3 bitmap font
const c = document.querySelector('canvas').getContext('2d');
const px = 8;
for (let i = 0; i < 8; i++) {
for (let j = 0; j < 8; j++) {
for (let b = 0; b < 6; b++) {
const n = i * 8 + j;
c.fillStyle = (n & (1 << b)) ? '#000' : '#fff';
c.fillRect((i * 6 + (b & 1)) * px, (j * 6 + (b >> 1)) * px, px, px);
}
}
}