waveshareFontGenerator

command module
v0.0.0-...-85a3bcf Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 13 Imported by: 0

README

waveshareFontGenerator

This tool can convert ttf fonts to a sFont struct needed for waveshare ePaper displays.

This is a prototype but workes fine for me.

As the epaper lib support only non-proportional fonts, finding the correct width can be tricky. You can configure the sizes with command line arguments (go run main.go -h).

GO 1.22 is needed to compile this tool.

Usage example:

go run main.go -f /usr/share/fonts/myfont.ttf > myCustomFont.h

or

go run github.com/ekle/waveshareFontGenerator@master

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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