根据需要安装上文列出的外部依赖项。推荐 Windows 平台上的用户使用 vcpkg 安装依赖项。CMakeLists.txt 会自动通过环境变量检测 vcpkg 并在检测到之后使用其工具链
Install dependencies listed above based on your needs. It's suggested that users on Windows platform using the vcpkg. CMakeLists.txt will automatically detects vcpkg by environment variables and use its toolchain after detecting it.
准备编译环境 / Setup Compilation Environment
CMake 3.20+
任意支持 C++20 的编译器 / Any compiler that supports C++20
测试过的 C++ 编译器 / Tested C++ compilers
MSVC 19.29 (Visual Studio 2019)
GCC 11.1
构建 / Build
mkdir build
cd build
cmake ..
cmake --build .
运行 / Run
运行可视化工具 / Run Visualizer
保证 tool/SourceHanSansHWSC-Regular.otf 位于其运行目录下
Please make sure that the tool/SourceHanSansHWSC-Regular.otf is in its execution directory