Skip to content

zach-klippenstein/gofontviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fontviewer

This is just some garbage code I wrote to see how hard it would be to render TTF fonts to an HTML5 Canvas in Go.

Sample

Libraries

Building

$ go get github.com/zach-klippenstein/gofontviewer
$ ./build.sh
$ open fontviewer.html # or whatever command you use to open a browser

Adding Fonts

Comes with Google's Roboto.

To add a font, drop a TTF file in fonts/ and add a //go:generate … line to fonts/fonts.go.

About

Render TTF fonts to an HTML5 Canvas in Go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published