cinder / Cinder

Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.
http://libcinder.org
Other
5.34k stars 944 forks source link

Fix for font outlines. See below: #2315

Closed paulhoux closed 1 year ago

paulhoux commented 1 year ago

This is the letter X of the Arial font with hinting enabled:

image

Here is the same letter, but with hinting disabled:

image

This is the letter e of the Arial font triangulated after extracting the outline using the old version, which converts quadratic curves to cubic curves, resulting in this case in 70 triangles:

image

Here is the same letter, but using the quadratic curves defined by the font, leading to far fewer triangles (in this case 45) and a reduced number of vertices:

image