Categorygithub.com/web-xiaxia/go-image-draw
repositorypackage
0.1.1
Repository: https://github.com/web-xiaxia/go-image-draw.git
Documentation: pkg.go.dev

# README

go-image-draw

image draw multi font string text and emoji

Installation

go get -u github.com/web-xiaxia/go-image-draw

Examples

dc := NewTextDraw([]*truetype.Font{font1, font2}, &truetype.Options{
    Size: 80,
})
dc.DrawString(img, color.White, "draw multi font text and emoji 😊", 10, 85)

Reference code / Acknowledgement

  • fogleman/gg: Go Graphics is a library for rendering 2D graphics in pure Go.
  • emojis: Emojis.Wiki — Emoji Meanings Encyclopedia