• Stars
    star
    214
  • Rank 184,678 (Top 4 %)
  • Language
    JavaScript
  • Created almost 8 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Font glyphs for GL Styles with open fonts

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.

More Repositories

1

openmaptiles

OpenMapTiles Vector Tile Schema Implementation
PLpgSQL
2,499
star
2

openmaptiles-tools

Tools to turn the schema into other formats
Python
396
star
3

osm-bright-gl-style

OSM Bright GL Style using OpenMapTiles
193
star
4

maptiler-3d-gl-style

Mapbox GL 3D extrusion demo
106
star
5

positron-gl-style

Positron GL style using OpenMapTiles
100
star
6

genfontgl

Create a fontstack folder from a TTF font for Mapbox GL
JavaScript
86
star
7

maptiler-terrain-gl-style

A base map ideal for outdoor activities featuring hill shading and contour lines
76
star
8

maptiler-basic-gl-style

Basic GL Style using OpenMapTiles
75
star
9

planetiler-openmaptiles

OpenMapTiles Vector Tile Schema implementation in Java for Planetiler tool
Java
67
star
10

dark-matter-gl-style

Dark Matter GL Style using OpenMapTiles
64
star
11

maptiler-toner-gl-style

Port of the Stamen Maps Toner style to OpenMapTiles GL Style
52
star
12

postserve

Use the ST_AsMVT function to render tiles directly in Postgres
Python
34
star
13

import-osm

Import OpenStreetMap into PostGIS using imposm3
Shell
29
star
14

fiord-color-gl-style

A dark blue GL style based on Positron
23
star
15

www.openmaptiles.org

OpenMapTiles.org website
HTML
23
star
16

postgis

A PostgreSQL Docker image with support for GEOS 3.5 and PostGIS 2.2
Dockerfile
20
star
17

generate-vectortiles

Generate vector tiles from TM2Source
Shell
18
star
18

openmaptiles-skiing

OpenMapTiles custom layer implementation
Makefile
15
star
19

import-natural-earth

Docker image to import NaturalEarth data into PostGIS using ogr2ogr
Shell
10
star
20

import-water

Import water from OpenStreetMapData into PostGIS
Shell
9
star
21

extracts

Create Country and City extracts from OpenMapTiles or any other MBTiles
Python
7
star
22

import-sql

Import SQL files in a directory into PostgreSQL and setup vector tile helper functions
PLpgSQL
6
star
23

import-osmborder

Import OSM Borders
Shell
6
star
24

import-lakelines

Import centered linestrings for labelling OpenStreetMap lakes into PostGIS
Dockerfile
3
star
25

import-wikidata

Import wikidata entries for translations into Posgres tables
Python
3
star