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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址