Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

qwant-maps-fonts

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qwant-maps-fonts

This project packages the most common free fonts with [fontnik](https://github.com/mapbox/fontnik) so you don't have to worry about [SDL](https://www.mapbox.com/blog/text-signed-distance-fields/) and [gzipped PBFs](https://github.com/mapbox/mapbox-gl-js/i

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 30 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc