Skip to content

Commit

Permalink
Migrate Noto examples to downstream repo [#16] (#28)
Browse files Browse the repository at this point in the history
* Migrate Noto examples to downstream repo [#16]

* Because any fontstack that maps 1 codepoint to 1 glyph is specific to a style and use case, migrate the examples out.
* new repo (protomaps/basemaps-assets) also handles CDN and ZIP distribution of example font.

* fix build
  • Loading branch information
bdon authored Oct 30, 2023
1 parent 9255ca8 commit c05a752
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 95 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ The easiest way to turn your custom fonts into files compatible with [MapLibre G

For other prepared fonts, look at [maplibre/demotiles/font](https://github.com/maplibre/demotiles/tree/gh-pages/font) instead.

For an example of using font-maker on the command line to cover as much of Unicode as possible, see the [protomaps/basemaps-assets](https://github.com/protomaps/basemaps-assets) repository.

## Usage

* Go to the web app at [maplibre.org/font-maker/](https://maplibre.org/font-maker/) and select your file.
Expand All @@ -20,6 +22,8 @@ For command line usage and developing, see [CONTRIBUTING.md](CONTRIBUTING.md)

If the MapLibre renderer does not find a matching codepoint in the current font, it will skip display of that character.

See @wipfli's [Text Rendering in MapLibre guide](https://github.com/wipfli/about-text-rendering-in-maplibre) for details on the drawbacks of mapping 1 codepoint to 1 glyph.

### CJK (Chinese, Japanese, Korean) text

The `font-maker` demo app has [local ideographs](https://maplibre.org/maplibre-gl-js-docs/example/local-ideographs/) enabled which is the default for most MapLibre applications. Generated fonts that include CJK ranges will display system default fonts instead of generated fonts.
Expand Down
1 change: 0 additions & 1 deletion examples/.gitignore

This file was deleted.

28 changes: 0 additions & 28 deletions examples/NotoSansBold.sh

This file was deleted.

66 changes: 0 additions & 66 deletions examples/NotoSansRegular.sh

This file was deleted.

1 change: 1 addition & 0 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#define BOOST_NO_CXX98_FUNCTION_BASE
// workaround unary_function in boost::geometry
#include <cstdint>
#include "mapbox/glyph_foundry.hpp"
#include "mapbox/glyph_foundry_impl.hpp"
#include <protozero/pbf_writer.hpp>
Expand Down

0 comments on commit c05a752

Please sign in to comment.