ttftoiconbitmap

command module
v0.0.0-...-ca6c950 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: MIT Imports: 13 Imported by: 0

README

ttftoiconbitmap

TTF font to icon bitmap converter. It takes an input TTF font file such as FontAwesome or really any reasonable TTF font, and renders it into a template bitmap.

This script basically generates PNG bitmaps of a font from a TTF file, using a template bitmap as a background.

Usage of ./ttftoiconbitmap:
  -chars string
        Characters to extract into bitmaps
  -color string
        Font color (default "#ffffff")
  -outdir string
        Output directory (default ".")
  -outprefix string
        Output filename prefix (default "char")
  -size int
        Font size (-1 = autosize) (default -1)
  -template string
        Template bitmap filename
  -ttf string
        TTF filename
  -yfix
        Employ Y-fix for lowercase characters
  -yoffset int
        Y offset to drawing characters (default -10)

Example command line:

 ./ttftoiconbitmap --ttf otfs/FontAwesome5Free-Solid.ttf --template icon_ring_template.png --outdir fa --outprefix fa

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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