Registry / utility / golang-freetype

golang-freetype

JSON →
library0.0.0-20170609003504-e2365dfdc4a0gogounverified

The freetype package provides a convenient API to draw text onto an image.

go get github.com/golang/freetype
INSTALL
IMPORT
SIG · GOLANG-FREETYPE
G
golang-freetype
utilitygov0.0.0-20170609003504-e2365dfdc4a0
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.

freetype
github.com/golang/freetype

Minimal example showing how to create a freetype context and draw text onto an image.

package main import ( "image" "image/png" "os" "github.com/golang/freetype" ) func main() { img := image.NewRGBA(image.Rect(0, 0, 200, 100)) c := freetype.NewContext() c.SetDst(img) // ... additional setup _ = c f, _ := os.Create("out.png") png.Encode(f, img) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20170609003504-e2365dfdc4a0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
golang-freetype — go get golang-freetype · libregistry