GLyphy is an implementation of the Slug algorithm for GPU text rasterization
C++
842
774 commits
updated Mar 30, 2026
GLyphy is a GPU text renderer that renders glyph outlines directly, using the Slug algorithm by Eric Lengyel for robust winding number calculation.
GLyphy works with quadratic Bezier curves (TrueType outlines) and produces pixel-perfect rendering at any scale with proper antialiasing.
Note: GLyphy is deprecated in favor of the HarfBuzz GPU module, which supports shaders for all major platforms.
Requires: meson, OpenGL 3.3+, FreeType, HarfBuzz, GLUT, GLEW.
meson setup build
meson compile -C build
build/demo/glyphy-demo
Each glyph's outline is encoded into a compact blob stored in a GPU buffer texture. The fragment shader computes a winding number by casting horizontal and vertical rays against the quadratic Bezier curves, using Lengyel's equivalence class algorithm for numerical robustness. Curves are organized into bands for efficient early exit.
GLyphy is licensed under the HarfBuzz Old MIT license. See COPYING for details.
(top 24 of 28)
3,940 followers · starred Mar 2022
368 followers · starred Nov 2014
386 followers · starred Mar 2022
1,977 followers · starred Mar 2023
GLyphy is an implementation of the Slug algorithm for GPU text rasterization
C++
842
774 commits
updated Mar 30, 2026
GLyphy is a GPU text renderer that renders glyph outlines directly, using the Slug algorithm by Eric Lengyel for robust winding number calculation.
GLyphy works with quadratic Bezier curves (TrueType outlines) and produces pixel-perfect rendering at any scale with proper antialiasing.
Note: GLyphy is deprecated in favor of the HarfBuzz GPU module, which supports shaders for all major platforms.
Requires: meson, OpenGL 3.3+, FreeType, HarfBuzz, GLUT, GLEW.
meson setup build
meson compile -C build
build/demo/glyphy-demo
Each glyph's outline is encoded into a compact blob stored in a GPU buffer texture. The fragment shader computes a winding number by casting horizontal and vertical rays against the quadratic Bezier curves, using Lengyel's equivalence class algorithm for numerical robustness. Curves are organized into bands for efficient early exit.
GLyphy is licensed under the HarfBuzz Old MIT license. See COPYING for details.
(top 24 of 28)
3,940 followers · starred Mar 2022
368 followers · starred Nov 2014
386 followers · starred Mar 2022
1,977 followers · starred Mar 2023