Skip to content

wipfli/pgf-glyph-ranges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pgf-glyph-ranges

Positioned Glyph Font Glyph Ranges for MapLibre GL JS and MapLibre Native

Folders

  • /: contains code to generate pgf glyph ranges
  • /font/ contains MapLibre glyphs ranges
  • /vendor/ contains submodules to compile font-maker

Steps

Build a docker image for compiling and running font-maker:

docker build -t positioned-glyph-font .

Get the git submodules:

git submodule update --init --recursive

Configure the font and version you want to generate glyph ranges for at the beginning of main.cpp.

vector<InputFont> input_fonts = {
    {"NotoSansDevanagari-Regular", "1"}
};

string output_name = "NotoSansDevanagari-Regular";

Note that only font names and versions that are contained the vendor/pgf-encoding submodule are supported. This submodule points to wipfli/pgf-encoding.

Create the font PBF files:

docker run --rm -it -v "$(pwd)":/root/ positioned-glyph-font /bin/bash /root/run.sh

You should now have some .pbf glyph ranges in the font/NotoSansDevanagari-Regular-v1 folder.

License

About

Positioned Glyph Font Glyph Ranges for MapLibre GL JS and MapLibre Native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published