[path-builder] Comment re cubic

This commit is contained in:
Behdad Esfahbod 2023-02-10 14:24:03 -07:00
parent 91c2f098d0
commit 6ddd490191
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ struct path_builder_t
/* based on https://github.com/RazrFalcon/ttf-parser/blob/4f32821/src/glyf.rs#L287
See also:
* https://developer.apple.com/fonts/TrueType-Reference-Manual/RM01/Chap1.html
* https://stackoverflow.com/a/20772557 */
* https://stackoverflow.com/a/20772557
*
* Cubic support added (incomplete). */
void consume_point (const contour_point_t &point)
{
bool is_on_curve = point.flag & glyf_impl::SimpleGlyph::FLAG_ON_CURVE;