web-xiaxia / go-image-draw

image draw string text and emoji

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

image draw string text and emoji

License:MIT License


Languages

Language:Go 100.0%