Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Noto examples to downstream repo [#16] #28

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading