mkdir freetype-study && cd freetype-study curl -fsSL https://codeload.github.com/freetype/freetype/tar.gz/refs/tags/VER-2-15-0 -o freetype.tgz tar -xzf freetype.tgz curl -fsSLO https://www.juyaoai.com/examples/freetype-glyph-outlines/demo.cpp curl -fsSLO https://raw.githubusercontent.com/adobe-fonts/source-sans/3.052R/TTF/SourceSans3-Regular.ttf cmake -S freetype-VER-2-15-0 -B ft-build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF \ -DFT_DISABLE_ZLIB=ON -DFT_DISABLE_BZIP2=ON -DFT_DISABLE_PNG=ON \ -DFT_DISABLE_HARFBUZZ=ON -DFT_DISABLE_BROTLI=ON -DFT_DISABLE_HVF=ON cmake --build ft-build --target freetype --parallel 2 c++ -std=c++17 -I ft-build/include -I freetype-VER-2-15-0/include demo.cpp ft-build/libfreetype.a -o demo ./demo SourceSans3-Regular.ttf