fontgen

command
v0.0.0-...-7526ba0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: MIT Imports: 11 Imported by: 0

README

#Fontgen GoDoc

Fontgen generates font files to be used by github.com/ZiRo/captcha

To install, simply run:

go get github.com/ZiRo/captcha

This progam also requires ImageMagick's convert binary.

Fontgen has two options

usage: fontgen [flags] filename
  -font string
		Font name (default "Monospace")
  -size string
		Font size (default "30")

Size is the desired font size in point. Values around 25 have proven to work the best. Font is the name of the font you want to generate. To find a list of all available fonts, just run

convert -list font

For example:

fontgen -font DejaVu-Sans-Mono -size 25 DejaVu-Sans-Mono.gob

Two pre-generated fonts are provided in this repository (TexGyreSchola and UbuntuMono).

Documentation

Overview

Fontgen generates font files to be used by github.com/ZiRo/captcha

To install, simply run:

github.com/ZiRo/captcha

This progam also requires ImageMagick's convert binary.

Fontgen has two options

usage: fontgen [flags] filename
  -font string
		Font name (default "Monospace")
  -size string
		Font size (default "30")

Size is the desired font size in point. Values around 25 have proven to work the best. Font is the name of the font you want to generate. To find a list of all available fonts, just run

convert -list font

For example:

fontgen -font DejaVu-Sans-Mono -size 25 DejaVu-Sans-Mono.gob

Jump to

Keyboard shortcuts

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