This examples provides a simple piece of code for generating bitmap for english fonts.
Run index.html
and you will see a bitmap with a set of common english characters. Right click and save it for your use.
The browser console outputs the bounding box of each character in a JSON format.
You can change fontSize
and fontFamily
in the index.html
based on your need.
Find the output
folder for an example output.
MIT