Version: v0.0.0-...-33b7446 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 15 Imported by: 0



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:


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!

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL