Registry / utility / pbnjay-pixfont

pbnjay-pixfont

JSON →
library0.0.0-20200714042608-33b744692567gogounverified

Simple pixel font library for drawing text in Go's standard image packages.

go get github.com/pbnjay/pixfont
INSTALL
IMPORT
SIG · PBNJAY-PIXFONT
P
pbnjay-pixfont
utilitygov0.0.0-20200714042608-33b744692567
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pixfont
github.com/pbnjay/pixfont

Draw a string on an image using the pixel font

package main import ( "image" "image/png" "os" "github.com/pbnjay/pixfont" ) func main() { img := image.NewRGBA(image.Rect(0, 0, 100, 20)) pixfont.DrawString(img, 10, 10, "Hello", pixfont.Black) f, _ := os.Create("output.png") png.Encode(f, img) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20200714042608-33b744692567latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
pbnjay-pixfont — go get pbnjay-pixfont · libregistry