Build Status

fontserver

Is no longer a server, but a library that augments a given mapnik vector tile with the glyphs needed to render the tile.

Fontserver requires a vector tile buffer to be passed to it and a "font stack" string of one or more fonts. It extracts all labels required to render the tile and loads all fonts in the font stack. Then, it layouts the text with the respective writing direction (Unicode bidi) and glyph shaping and embeds these shaped glyphs aas well as the positions into the augmented ("styled") vector tile.

Installing

Make sure you have boost, freetype, icu4c, harfbuzz and protobuf installed. With homebrew, you can type brew install boost --c++11 --with-icu freetype icu4c --c++11 protobuf --c++11. The makefile uses pkg-config to find these libraries and links dynamically to them, so make sure that pkg-config can find them.

npm install

Usage

This is included in the following projects:

  • llmr
  • tilestream-pro (gl branch)
Description
Fonts ⇢ protobuf-encoded SDF glyphs
Readme 33 MiB
Languages
JavaScript 34.8%
C++ 33.8%
Shell 18.1%
Python 10.1%
Makefile 3.2%