Skip to content

A library and server to generate SDF font glyph PBF on-the-fly, written in Golang.

License

Notifications You must be signed in to change notification settings

jpbede/fontmachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A library and server to generate SDF font glyph PBF on-the-fly, written in Golang.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published