figletlib

package
v0.0.0-...-054d06d Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: BSD-3-Clause Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	SMEqual     = 1
	SMLowLine   = 2
	SMHierarchy = 4
	SMPair      = 8
	SMBigX      = 16
	SMHardBlank = 32
	SMKern      = 64
	SMSmush     = 128
)

smush modes

Variables

This section is empty.

Functions

func FPrintLines

func FPrintLines(w io.Writer, lines []FigText, hardblank rune, maxwidth int, align string)

func FPrintMsg

func FPrintMsg(w io.Writer, msg string, f *Font, maxwidth int, s Settings, align string)

func FontNamesInDir

func FontNamesInDir(dir string) ([]string, error)

func GuessFontsDirectory

func GuessFontsDirectory() string

func PrintLines

func PrintLines(lines []FigText, hardblank rune, maxwidth int, align string)

func PrintMsg

func PrintMsg(msg string, f *Font, maxwidth int, s Settings, align string)

func SprintMsg

func SprintMsg(msg string, f *Font, maxwidth int, s Settings, align string) string

Types

type FigText

type FigText struct {
	// contains filtered or unexported fields
}

func GetLines

func GetLines(msg string, f *Font, maxwidth int, s Settings) []FigText

func (*FigText) Art

func (ft *FigText) Art() [][]rune

func (*FigText) String

func (ft *FigText) String() string

type Font

type Font struct {
	// contains filtered or unexported fields
}

func GetFontByName

func GetFontByName(dirname, name string) (*Font, error)

func ReadFont

func ReadFont(filename string) (*Font, error)

func ReadFontFromBytes

func ReadFontFromBytes(bytes []byte) (*Font, error)

func (*Font) Settings

func (f *Font) Settings() Settings

type Settings

type Settings struct {
	// contains filtered or unexported fields
}

func (*Settings) HardBlank

func (s *Settings) HardBlank() rune

func (*Settings) SetRtoL

func (s *Settings) SetRtoL(rtol bool)

Jump to

Keyboard shortcuts

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