rust-ttf-parser/testing-tools/font-view
su-fang 161638757f Import Upstream version 0.15.2 2023-03-10 16:51:43 +08:00
..
.gitignore Import Upstream version 0.15.2 2023-03-10 16:51:43 +08:00
README.md Import Upstream version 0.15.2 2023-03-10 16:51:43 +08:00
font-view.pro Import Upstream version 0.15.2 2023-03-10 16:51:43 +08:00
freetypefont.cpp Import Upstream version 0.15.2 2023-03-10 16:51:43 +08:00
freetypefont.h Import Upstream version 0.15.2 2023-03-10 16:51:43 +08:00
glyph.h Import Upstream version 0.15.2 2023-03-10 16:51:43 +08:00
glyphsview.cpp Import Upstream version 0.15.2 2023-03-10 16:51:43 +08:00
glyphsview.h Import Upstream version 0.15.2 2023-03-10 16:51:43 +08:00
harfbuzzfont.cpp Import Upstream version 0.15.2 2023-03-10 16:51:43 +08:00
harfbuzzfont.h Import Upstream version 0.15.2 2023-03-10 16:51:43 +08:00
main.cpp Import Upstream version 0.15.2 2023-03-10 16:51:43 +08:00
mainwindow.cpp Import Upstream version 0.15.2 2023-03-10 16:51:43 +08:00
mainwindow.h Import Upstream version 0.15.2 2023-03-10 16:51:43 +08:00
mainwindow.ui Import Upstream version 0.15.2 2023-03-10 16:51:43 +08:00
ttfparserfont.cpp Import Upstream version 0.15.2 2023-03-10 16:51:43 +08:00
ttfparserfont.h Import Upstream version 0.15.2 2023-03-10 16:51:43 +08:00

README.md

font-view

A simple tool to preview all glyphs in the font using ttf-parser, freetype and harfbuzz.

Build

# build ttf-parser C API first
cargo build --release --manifest-path ../../c-api/Cargo.toml

# build only with ttf-parser support
qmake
make

# or build with freetype support
qmake DEFINES+=WITH_FREETYPE
make

# or build with harfbuzz support
# note that harfbuzz should be built from sources using meson,
# because we're using an unstable API
#
# build harfbuzz first
meson builddir -Dexperimental_api=true --buildtype release
ninja -C builddir
# build font-view
qmake DEFINES+=WITH_HARFBUZZ HARFBUZZ_SRC=/path/to/harfbuzz-master/
make

# or with all
qmake DEFINES+=WITH_FREETYPE DEFINES+=WITH_HARFBUZZ HARFBUZZ_SRC=/path/to/harfbuzz-master/
make