https://github.com/jpbede/fontmachine
A library and server to generate SDF font glyph PBF on-the-fly, written in Golang.
https://github.com/jpbede/fontmachine
Last synced: about 1 year ago
JSON representation
A library and server to generate SDF font glyph PBF on-the-fly, written in Golang.
- Host: GitHub
- URL: https://github.com/jpbede/fontmachine
- Owner: jpbede
- License: mit
- Created: 2020-07-08T20:38:48.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-05T02:28:49.000Z (about 3 years ago)
- Last Synced: 2025-02-08T20:17:43.378Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Fontmachine
[](http://godoc.org/github.com/jpbede/fontmachine)
[](https://hub.docker.com/r/jpbe/fontmachine)
A small library and server to generate SDF font glyphs, written in Golang.
The http server implements the Mapbox GL Glyphs API (`/{fontstack}/{range}.pbf`)
## Using Fontmachine
There are serval ways to use Fontmachine.
### Docker
When you want to run Fontmachine with docker, use the following command:
`docker run -p 8080:8080 -v {font path}:/fonts jpbe/fontmachine`
Place all font files (ttf) in a folder and replace `{font path}` in the above command with the path.
### Hosted
I provide a hosted version of Fontmachine, which is reachable at `use.fontmachine.io`
If you want to use this just replace your glyph path with `https://use.fontmachine.io/{fontstack}/{range}.pbf`
#### Available fonts
- All Roboto fonts
- All Open Sans fonts
- All Noto fonts
#### Usage policy
This kind of service is being provided with best effort. Be kind and do not stress this service.
I will ratelimit the requests if needed.
Please contact me before using this service in a large manner.
I would be happy if you would sponsor to keep this service running.