Code Monkey home page Code Monkey logo

fonts's Introduction

Open Font Glyphs for GL Styles

This project packages the most common free fonts with fontnik so you don't have to worry about SDL and gzipped PBFs. The fonts are deployed to https://free.tilehosting.com/ which also supports concatenating fonts.

Configure Mapbox GL Style JSON

Your current Mapbox GL Style JSON configuration for glyphs will look like this.

"glyphs": "mapbox://fonts/openmaptiles/{fontstack}/{range}.pbf",

In order to use the fonts without a Mapbox API key edit your Mapbox GL Style JSON and change the endpoint for glyphs to http://fonts.openmaptiles.org/{fontstack}/{range}.pbf.

"glyphs": "http://fonts.openmaptiles.org/{fontstack}/{range}.pbf",

Supported Font Families

The following fonts that are available in Mapbox Studio are supported.

  • Noto Sans (patched by Klokan Technologies)
  • Open Sans
  • PT Sans
  • Roboto
  • Metropolis

Package the Fonts

Install required packages:

npm install

Generate fonts:

node ./generate.js

The PBFs will created be in the _output directory.

Font License

Please mind the license of the original fonts. All fonts are either licensed under OFL or Apache.

fonts's People

Contributors

klokan avatar lukasmartinelli avatar petrsloup avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.