Check The GitHub Repository

Sugar Font Editor Activity

Kids Make Fonts

The core Font Editor User Story


By Dave Crossland (GSoC Mentor)

(Reposted from the sugar-devel list)

I think Yash’s main job for the next week is to make the core methods work: new, load, save, import, export. These are around 90% at this moment and I expect Yash will nail them this weekend.

Once they are working well, then I suggest Yash moves on to the core methods needed to edit a glyph: editing the points is half of that, and editing the sidebearings is the other half. Probably sidebearings is the easier one!

For editing points, there is

  1. repositioning existing points
  2. adding new points to existing contours
  3. removing points from a contour that ‘breaks’ an closed contour into an open one
  4. ‘merging’ points, where they are removed from a closed contour without breaking it open
  5. adding new points to make a new contour, a “pen tool.”

Perhaps the best primer on the ‘pen tool’ is the video made by John Warnock - one of the Adobe founders, who invented Adobe Illustrator 30 years ago - that was included in the very first version of Adobe Illustrator:

There are various ways of calculating Bezier splines, and some are much faster than others. has sample Python code, which is public domain and you can use freely.

And of course the best resource for learning about Bezier code is

What is needed for a v1.0

Imagine you are using it for the first time… What are the essential things that you do? That is the “core” User Story… Something like this:

When you can do that, you’ll have a v1.0 :)