mirror of
https://github.com/mapbox/node-fontnik.git
synced 2026-01-25 16:02:44 +00:00
25 lines
833 B
Markdown
25 lines
833 B
Markdown
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](http://www.unicode.org/reports/tr9/))
|
|
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
|
|
```
|
|
|
|
## Usage
|
|
|
|
This is included in the `llmr` project as a dependency: consult its `README.md`
|
|
for setup instructions.
|