Konstantin Käfer cf41ee113f make it private
2013-11-07 16:33:20 +01:00
2013-10-31 17:55:36 +01:00
2013-10-15 13:06:08 +02:00
2013-10-15 13:06:08 +02:00
2013-10-16 14:09:28 +02:00
2013-10-16 14:09:28 +02:00
2013-10-10 13:59:38 +02:00
2013-10-15 13:06:08 +02:00
2013-10-22 12:17:58 +02:00
2013-10-31 17:24:43 +01:00
2013-11-07 16:33:20 +01:00
2013-10-29 12:06:02 +01:00
2013-10-10 13:59:38 +02:00

The font server loads vector tiles and map stylesheets. 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 pango and protobuf installed. With homebrew, you can just type brew install pango protobuf. The makefile uses pkg-config to find these libraries and links dynamically to them, so make sure that pkg-config can find them.

To compile this module, type:

bin/updateproto.sh
npm install

Running

This server uses a font directory contained in this installation. Add any fonts you want to use there (or comment out the FONTCONFIG_PATH override at the top of server.js).

To start the server, type:

node server.js
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%