oden/third-party/vendor/ttf-parser-0.15.2/testing-tools/font-view
2024-03-08 11:03:01 -08:00
..
font-view.pro Vendor things 2024-03-08 11:03:01 -08:00
freetypefont.cpp Vendor things 2024-03-08 11:03:01 -08:00
freetypefont.h Vendor things 2024-03-08 11:03:01 -08:00
glyph.h Vendor things 2024-03-08 11:03:01 -08:00
glyphsview.cpp Vendor things 2024-03-08 11:03:01 -08:00
glyphsview.h Vendor things 2024-03-08 11:03:01 -08:00
harfbuzzfont.cpp Vendor things 2024-03-08 11:03:01 -08:00
harfbuzzfont.h Vendor things 2024-03-08 11:03:01 -08:00
main.cpp Vendor things 2024-03-08 11:03:01 -08:00
mainwindow.cpp Vendor things 2024-03-08 11:03:01 -08:00
mainwindow.h Vendor things 2024-03-08 11:03:01 -08:00
mainwindow.ui Vendor things 2024-03-08 11:03:01 -08:00
README.md Vendor things 2024-03-08 11:03:01 -08:00
ttfparserfont.cpp Vendor things 2024-03-08 11:03:01 -08:00
ttfparserfont.h Vendor things 2024-03-08 11:03:01 -08:00

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