Documentation ¶
Index ¶
- func Init(fonts ...string)
- func RegisterFont(name, file string, options *truetype.Options, asciiHalfWidth bool)
- func RenderOneFont(fontname string, txt []rune, option *Options) image.Image
- func RenderSomeFonts(count int, txt []rune, option *Options) image.Image
- type Generator
- type Options
- type ShuffleOptions
- type TokenGenerator
- type TokensGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(fonts ...string)
Init FontName|FontFile FontName|FontFile|FontSize FontName|FontFile|FontSize|ASCII Half Width
func RegisterFont ¶
Types ¶
type Generator ¶ added in v0.0.5
func NewRandTokenGenerator ¶ added in v0.0.5
func NewRandTokenGenerator(fn TokenGenerator, fontname string, opt *Options) Generator
func NewShuffleStringGenerator ¶ added in v0.0.5
func NewShuffleStringGenerator(fn TokensGenerator, fontname string, opt *ShuffleOptions) Generator
type ShuffleOptions ¶ added in v0.0.5
type TokenGenerator ¶ added in v0.0.5
type TokensGenerator ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.