Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orsinium-labs/memfont
Pixel font for golang
https://github.com/orsinium-labs/memfont
font game-development golang graphics pixel pixel-font typeface
Last synced: 2 months ago
JSON representation
Pixel font for golang
- Host: GitHub
- URL: https://github.com/orsinium-labs/memfont
- Owner: orsinium-labs
- Created: 2020-11-09T14:49:31.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-13T15:12:20.000Z (about 4 years ago)
- Last Synced: 2023-07-27T22:26:59.881Z (over 1 year ago)
- Topics: font, game-development, golang, graphics, pixel, pixel-font, typeface
- Language: Go
- Homepage:
- Size: 159 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# memfont
A simple [Go](https://golang.org/) library providing interface for [mem-font](https://github.com/oddoid/mem) pixel font.
```bash
go get github.com/orsinium-labs/memfont
```## Usage
It returns [font.Face](https://godoc.org/golang.org/x/image/font#Face) interface. A few ways how to use it:
+ Draw text on an image using [font.Drawer](https://godoc.org/golang.org/x/image/font#Drawer).
+ Use font in [pixel](https://github.com/faiface/pixel) game library via [pixel.Atlas](https://pkg.go.dev/github.com/faiface/pixel/text#Atlas).See [_examples](./_examples/) directory.