Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrintFonts for visualization purposes #9

Open
mh-cbon opened this issue Jul 2, 2019 · 0 comments
Open

PrintFonts for visualization purposes #9

mh-cbon opened this issue Jul 2, 2019 · 0 comments

Comments

@mh-cbon
Copy link

mh-cbon commented Jul 2, 2019

hi,

small func i had to write that might be added to the package

func PrintFonts(dst io.Writer, phrase string) {
	fonts, _ := figure.AssetDir("fonts")
	for _, f := range fonts {
		f = strings.TrimSuffix(f, ".flf")
		myFigure := figure.NewFigure(phrase, f, true)
		fmt.Fprintf(dst, `> %v
%v
`, f, myFigure)
	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant