This repo is DEPRECATED, please use fontcatalog instead.
This module contains a font catalog to be used in the harp.gl renderer.
For information about coding style or contributing, please refer to the information main project harp.gl.
Run:
yarn installto download and install all required packages and set up the yarn workspace.
Run:
yarn testTo generate your own FontCatalog assets to use with harp.gl, you need to supply a JSON file containing your FontCatalog description. This file is composed of the following paremeters:
The size, distance and type parameters influence how SDF glyphs are rasterize, and thus, can affect the quality of the output FontCatalog. To learn more about Font SDF Rasterization, visit the msdfgen repository.
Run:
yarn create-font-catalog -- -i <PATH_TO_DESCRIPTION> -o <OUTPUT_PATH>Which will output assets in the following directory structure:
├── <NAME>_Assets
│ ├── Extra
│ │ ├── Specials.json
│ │ └── Specials.png
│ ├── FontA
│ │ ├── Basic_Latin.json
│ │ ├── Basic_Latin.png
│ │ └── ...
│ ├── FontB
│ │ ├── Basic_Latin.json
│ │ ├── Basic_Latin.png
│ │ └── ...
│ └── ...
├── <NAME>_BoldAssets (if any)
│ └── ...
├── <NAME>_ItalicAssets (if any)
│ └── ...
├── <NAME>_BoldItalicAssets (if any)
│ └── ...
└── <NAME>_FontCatalog.json
To use these assets with your harp.gl theme files, copy all of them to your resources folder and reference them from the theme with a relative path:
"fontCatalogs": [
{
"name": "<NAME>",
"url": "./<NAME>_FontCatalog.json"
}
]Copyright (C) 2018-2019 HERE Europe B.V.
See the LICENSE file in the root of this project for license details.
Please note that the individual fonts are under different licenses: resources-dev/fonts/README.md