A live coding session building a contour merging algorithm for a custom font rendering engine. The author explains font contour winding order rules, signed distance fields, and why inside edges need to be removed before GPU-based SDF generation. The session covers implementing a graph structure in Zig where contour edges are split at intersection points using line-line intersection math, with OpenGL visualization to debug the results. The work is motivated by building a custom Twitch chat client with its own GUI framework and text renderer.
•2h 23m watch time
Sort: