Reputation: 3
I am looking to extract the bezier equations that makeup fonts using the otf file format ideally, I would like the raw equations so I can manipulate and plot them I cant find information on this anywhere does anyone have any clue how to do this?
Upvotes: 0
Views: 448
Reputation: 3650
The font data doesn't include Bezier equations; it has positions for Bezier control points. See documentation for the 'glyf', 'CFF ' or 'CFF2' tables in the OpenType spec. This page in Apple's TrueType Reference Manual provides the quadratic Bezier equations pertaining to control points for the 'glyf' table, though you could find the equations anywhere.
The 'CFF ' and 'CFF2' tables work somewhat differently, in that they have a binary representation for graphic instructions that originate in the Postscript language (similar to paths in SVG, if your familiar with that); but curves are represented as a sequence of control points for cubic Beziers.
Upvotes: 1