<commit_before># Free Mapbox GL Fonts [![Code is public domain](https://img.shields.io/badge/license-Public%20Domain-blue.svg)](http://choosealicense.com/licenses/unlicense/)

[Configuring fonts in Mapbox GL](https://www.mapbox.com/mapbox-gl-style-spec/#glyphs) without using the Mapbox API is a pain and struggle. No one should need to know how the fonts are packaged in order to use Mapbox GL without Mapbox. 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/issues/830).

## Configure Mapbox GL Style JSON

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

```javascript
    "glyphs": "mapbox://fonts/morgenkaffee/{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://glfonts.lukasmartinelli.ch/fonts/{fontstack}/{range}.pbf`.

```javascript
    "glyphs": "http://glfonts.lukasmartinelli.ch/fonts/{fontstack}/{range}.pbf",
```

## Supported Fonts

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

*   Open Sans13Selected
*   Open Sans Regular
*   Open Sans Semibold
*   Open Sans Bold
*   Open Sans Extrabold
*   Open Sans Light
*   Open Sans Condensed Bold
*   Open Sans Italic
*   Open Sans Semibold Italic<commit_msg>Remove code ident<commit_after># Free Mapbox GL Fonts [![Code is public domain](https://img.shields.io/badge/license-Public%20Domain-blue.svg)](http://choosealicense.com/licenses/unlicense/)

[Configuring fonts in Mapbox GL](https://www.mapbox.com/mapbox-gl-style-spec/#glyphs) without using the Mapbox API is a pain and struggle. No one should need to know how the fonts are packaged in order to use Mapbox GL without Mapbox. 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/issues/830).

## Configure Mapbox GL Style JSON

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

```javascript
"glyphs": "mapbox://fonts/morgenkaffee/{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://glfonts.lukasmartinelli.ch/fonts/{fontstack}/{range}.pbf`.

```javascript
"glyphs": "http://glfonts.lukasmartinelli.ch/fonts/{fontstack}/{range}.pbf",
```

## Supported Fonts

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

*   Open Sans13Selected
*   Open Sans Regular
*   Open Sans Semibold
*   Open Sans Bold
*   Open Sans Extrabold
*   Open Sans Light
*   Open Sans Condensed Bold
*   Open Sans Italic
*   Open Sans Semibold Italic
{'fraction_non_alphanumeric': 0.11559139784946236, 'fraction_numerical': 0.004704301075268817, 'mean_word_length': 4.422586520947177, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6970153', 'n_tokens_mistral': 993, 'n_tokens_neox': 906, 'n_words': 309}