5 ms·
Would the same bezier curves be used in font rendering? And do we have GPU bezier drawing functions or shader kernels available?
by vFunct 1y ago
Would the same bezier curves be used in font rendering? And do we have GPU bezier drawing functions or shader kernels available?
- ethan_smith 1y agoYes, TrueType fonts use quadratic beziers while PostScript/OpenType use cubic beziers, and modern GPUs offer acceleration through tessellation shaders and compute pipelines like NV_path_rendering extension.
- o11c 1y agoNote that while cubic bezier curves are nice for designing shapes, quadratic bezier curves allow a much more optimized renderer. It's usually worth approximating.