tool

command
v0.0.0-...-abed7bd Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2015 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Overview

Binary tool generates dictionary files that can be used by the text package to render text using the distance field font rendering method. A .ttf font file must be specified as an input, and an output.png and output.dict file will be generated from it. The output.png file can be used to see how well packed the atlas is, if there is a significant amount of empty space you may want to retry with a different value for --dpi. Regardless of what --dpi is used when generating the dictionary the font will always render at the same size because a height parameter is always used when rendering text. The output.dict file is what should be given to text.LoadDictionary().

Jump to

Keyboard shortcuts

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