| 1 | # font-view |
| 2 | |
| 3 | A simple tool to preview all glyphs in the font using `ttf-parser`, `freetype` and `harfbuzz`. |
| 4 | |
| 5 | ## Build |
| 6 | |
| 7 | ```sh |
| 8 | # build ttf-parser C API first |
| 9 | cargo build --release --manifest-path ../../c-api/Cargo.toml |
| 10 | |
| 11 | # build only with ttf-parser support |
| 12 | qmake |
| 13 | make |
| 14 | |
| 15 | # or build with freetype support |
| 16 | qmake DEFINES+=WITH_FREETYPE |
| 17 | make |
| 18 | |
| 19 | # or build with harfbuzz support |
| 20 | # note that harfbuzz should be built from sources using meson, |
| 21 | # because we're using an unstable API |
| 22 | # |
| 23 | # build harfbuzz first |
| 24 | meson builddir -Dexperimental_api=true --buildtype release |
| 25 | ninja -C builddir |
| 26 | # build font-view |
| 27 | qmake DEFINES+=WITH_HARFBUZZ HARFBUZZ_SRC=/path/to/harfbuzz-master/ |
| 28 | make |
| 29 | |
| 30 | # or with all |
| 31 | qmake DEFINES+=WITH_FREETYPE DEFINES+=WITH_HARFBUZZ HARFBUZZ_SRC=/path/to/harfbuzz-master/ |
| 32 | make |
| 33 | ``` |