Skip to content

Comments

Add fonts#60

Draft
jake-low wants to merge 2 commits intomainfrom
jlow/fonts
Draft

Add fonts#60
jake-low wants to merge 2 commits intomainfrom
jlow/fonts

Conversation

@jake-low
Copy link
Member

Adds font serving support to tiles.openstreetmap.us. I uploaded four font families to start with: Noto Sans, Noto Serif, Roboto, and Roboto Slab.

Still a draft because currently fonts are included in the repo and I don't think including large binary files is a good idea (GitHub has a 100MB file size limit, and keeping binary files in the repo will become especially annoying if we have lots of fonts). I'm thinking instead we should stash the font files somewhere else and download them before building glyphs as part of the Makefile.

@1ec5
Copy link
Member

1ec5 commented Mar 27, 2025

By the way, OSM Americana is serving up Web fonts from https://github.com/osm-americana/web-fonts/ and glyph PBFs from https://github.com/osm-americana/fontstack66/. The specific font selection differs, but maybe some of the build infrastructure can be reused.

(I’m working toward MapLibre improvements that will eventually make the glyph PBFs redundant to the Web fonts: maplibre/maplibre-style-spec#1045.)

@jake-low
Copy link
Member Author

jake-low commented May 5, 2025

Partially superceded by #101. Still need to automate preparing and uploading font files though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants