Comment

Comment by barbariangrunge

I wrote an openGL font renderer once. It was a lot of fun. Bezier curves are such an elegant technique. The difference between what I wrote and what you'd use in a proper environment is pretty big, but I recommend it sometime.

Fonts are pretty much just third or fourth degree beziers, plus a way to shade between the lines iirc (i may have my terminology wrong). Try it out sometime, I did my curves using tessellation shaders.

Btw, you'll never find a better guide on beziers than here:

https://pomax.github.io/bezierinfo/

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton