Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uberswe/centertext
A package which will take an image.Image, truetype.Font and text string and then draw the text centered on the provided image.
https://github.com/uberswe/centertext
Last synced: about 2 months ago
JSON representation
A package which will take an image.Image, truetype.Font and text string and then draw the text centered on the provided image.
- Host: GitHub
- URL: https://github.com/uberswe/centertext
- Owner: uberswe
- Created: 2021-05-10T16:14:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-02T21:29:24.000Z (about 1 year ago)
- Last Synced: 2024-06-21T03:24:21.453Z (6 months ago)
- Language: Go
- Homepage:
- Size: 60.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# centertext
Still a work in progress
A package which will take an image.Image, truetype.Font and text string and then draw the text centered on the provided image.
Here is how it could be used
```go
out, err := centertext.OnImage(img, font, "Hello world")
```