SkillAgentSearch skills...

Smallfont

Small monospaced pixel font (8x8) and rasterizer for LED/LCD projects

Install / Use

/learn @mdp/Smallfont
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

smallfont

SmallFont

Build Status

Rasterize small fonts (8x8, 6x8 and 5x8 currently supported) for LED projects

Example usage

package main

import "github.com/mdp/smallfont"

func main() {
  message := []byte("smallfont")
  img := image.NewRGBA(image.Rect(0, 0, 128, 32)) // 52Pi OLED size
  ctx := smallfont.Context{
    Font:  smallfont.Font8x8,
    Dst:   img,
    Color: color.Black,
  }
  err := ctx.Draw(message, 0, 0)
  if err != nil {
    fmt.Println(err)
  }
  f, _ := os.OpenFile("out.png", os.O_CREATE|os.O_RDWR, 0644)
  defer f.Close()
  png.Encode(f, img)
}

License

MIT - Do with this as you please

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated6mo ago
Forks0

Languages

Go

Security Score

67/100

Audited on Oct 2, 2025

No findings