Documentation ¶
Overview ¶
fontgen is a commandline tool for generating pixel fonts supported by pixfont. First is to create an image of your pixel font in your favorite graphics program with your set of supported characters. Ex:
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
Ensure that there is a solid color background, single-color font pixels (i.e. no anti-aliasing), and that a column of pixels separate each character to ensure best results. Then simply run:
./fontgen -img mypixelfont.png -o myfont
Add myfont.go to your project, then just use Font.DrawString(...) to add text to your image!
Click to show internal directories.
Click to hide internal directories.