Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging Noto fonts #4

Closed
rinigus opened this issue Dec 11, 2017 · 1 comment
Closed

Merging Noto fonts #4

rinigus opened this issue Dec 11, 2017 · 1 comment

Comments

@rinigus
Copy link

rinigus commented Dec 11, 2017

As a part of the work on adding support of Mapbox GL tiles to OSM Scout Server, I had to face the problem of distributing fonts as well. To be able to merge all Noto fonts into a single stack, I wrote a small python script that did it. Its available at https://github.com/rinigus/mapbox-gl-fonts as fontimport.py. To run it, you would need PBF support for python, protoc and fontnik.

For Noto fonts import, it converts all Noto fonts separately into PBF-formatted glyphs collections and then iterates through all stack ranges, opens them up using known PBF format, and merges the glyphs from different PBFs in the order of given preference. As a result, I could ship my server having just a single Noto font and it seems to work correctly (although I am no expert in all used languages).

By using this approach you maybe able to drop having two fonts in your styles.

@rinigus
Copy link
Author

rinigus commented Jun 27, 2018

closing to cleanup stale issues. reopen if there is any interest

@rinigus rinigus closed this as completed Jun 27, 2018
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

No branches or pull requests

1 participant