cmd

command
v0.0.0-...-cf49ba5 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2017 License: MIT Imports: 14 Imported by: 0

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:

./fontget -img mypixelfont.png -o myfont

Add myfont.go to your project, then just use Font.DrawString(...) to add text to your image!

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL