[Sugar-devel] [GSOC] Font Editor Next Steps

Dave Crossland dave at lab6.com
Mon May 23 16:43:26 EDT 2016


Hi!

On 22 May 2016 at 18:54, Dave Crossland <dave at lab6.com> wrote:

> [MAKING A GLYPH EDITING INTERFACE]
>>>> **A drawing area where we can edit the Glyphs within a font like this
>>>> <https://raw.githubusercontent.com/sugarlabs/edit-fonts-activity/gh-pages/files/img/4.png>
>>>>  **
>>>>
>>>>    1. Should the Glyphs be rendered in this using Cairo?
>>>>
>>>>
>>> Yes.
>>>
>>>
>>>>
>>>>    1. if yes then should I write my own method for this or is there
>>>>    something inbuilt in Cairo or a 3rd party lib for reading ufo3's
>>>>    .glif files?
>>>>
>>>> defcon reads the UFO (and thus its GLIF files) and loads their bezier
>>> outlines as python objects, so you can use pycairo to render them.
>>>
>>
>> Oh, I said reading, I meant for rendering them.
>> defon only gives the data as objects which can contain multiple
>> components/countours and writng methods/classes for that will be a bit
>> complex
>>
> I think this will be a major part of my GSoC. ;)
>>
>
> I'm optimistic that you can crack it within a week, since you have
> defconQt (and the ufoJS glifrendered.html) as a reference that you can port
> :)
>

Indeed, Yash seems to have got the basics working already :)

https://sugarlabs.github.io/edit-fonts-activity/fill-rules

We skipped the IRC meeting as Eli and Yash and I chatted on Google
Hangouts.

Yash, please do make a daily blog post with the 3 things :)

-- 
Cheers
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20160523/c001eba8/attachment.html>


More information about the Sugar-devel mailing list