What is the formula to draw a line in x, y space given b-spline coordinates in a TrueType font?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Please note that Truetype allows for bspline curves AND straight lines within a glyph definition.
If you need to change these commands into a series of MoveTo’s and LineTo’s you can use the following:
Convert the TrueType data into a list of hinted coordinates. This is something your OS can do for you (following code uses the Windows APIs).
Walk all coordinates and translate the curves into lines (see code sniplet below):