MCPcopy Create free account
hub / github.com/behdad/glyphy

github.com/behdad/glyphy @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
170 symbols 369 edges 27 files 14 documented · 8% updated 3mo ago★ 84215 open issues

Browse by type

Functions 156 Types & classes 14
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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.

Building

Requires: meson, OpenGL 3.3+, FreeType, HarfBuzz, GLUT, GLEW.

meson setup build
meson compile -C build
build/demo/glyphy-demo

How it works

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.

License

GLyphy is licensed under the HarfBuzz Old MIT license. See COPYING for details.

Core symbols most depended-on inside this repo

Shape

Function 156
Class 14

Languages

C++82%
C18%

Modules by API surface

demo/demo-view.cc27 symbols
src/glyphy-encode.cc16 symbols
demo/trackball.c16 symbols
demo/glyphy-demo.cc16 symbols
demo/matrix4x4.c14 symbols
bench/bench-encode.cc10 symbols
demo/demo-font.cc9 symbols
demo/demo-buffer.cc8 symbols
demo/demo-atlas.cc8 symbols
src/glyphy-harfbuzz.h7 symbols
src/glyphy-extents.cc6 symbols
src/glyphy-cu2qu.cc6 symbols

For agents

$ claude mcp add glyphy \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page