<div dir="ltr">Thanks for the feedback Dave! <div>I've made the changes to the <a href="https://sugarlabs.github.io/edit-fonts-activity/latest-proposal">proposal</a> as per your comments</div><div><br></div><div>I need help/advice regarding a few things: </div><div><span style="line-height:1.5">I'm going to ask them here and then make a compiled blog post in a question-answer format once we sort them out. IMHO this will be a better way to document this.</span></div><div><span style="line-height:1.5"><br></span></div><div>[WORKING WITH FONTS INSIDE SUGAR]</div><div><div>I found much of the info regarding loading fonts and using them to format a text string in Gonzalo<span class="inbox-inbox-Apple-converted-space"> </span><div class="inbox-inbox-gr_ inbox-inbox-gr_27 inbox-inbox-gr-alert inbox-inbox-gr_spell inbox-inbox-gr_disable_anim_appear inbox-inbox-ContextualSpelling inbox-inbox-ins-del inbox-inbox-multiReplace" style="display:inline;border-bottom-width:3px;border-bottom-style:solid;border-bottom-color:transparent;color:inherit;font-size:inherit;background-repeat:no-repeat">Odiard's</div><span class="inbox-inbox-Apple-converted-space"> </span><a href="https://github.com/sugarlabs/edit-fonts-activity/blob/master/activity.py">code</a> (which was a great read :D) . But this Activity only lists the current fonts in the system and to make a proper font manager I need to know the following:</div></div><div><ol><li><span style="line-height:1.5">Where are fonts stored in sugar and what format they are stored in? </span><br></li><li><span style="line-height:1.5">How to install/uninstall (or Activate/Deactivate) fonts both at runtime Activity(if we can) and externally(using Ubuntu)?</span><br></li><li><span style="line-height:1.5">if we are going to make collections of fonts and marking some fonts as favorites where should these setting be saved?</span></li></ol></div><div>[MAKING A GLYPH PICKER INTERFACE]</div><div>**A grid layout of all the Glyphs within a font like <a href="https://raw.githubusercontent.com/sugarlabs/edit-fonts-activity/gh-pages/files/img/3.png">this</a><span style="line-height:1.5"> ** </span></div><div><ol><li><span style="line-height:1.5">How should we render the Glyphs in the boxes, using Gtk-Cairo or through Pango which will require the font to be installed as a .ttf maybe?</span></li></ol></div><div><div style="background-color:rgb(245,246,245)">[MAKING A GLYPH EDITING INTERFACE]</div><div style="background-color:rgb(245,246,245)">**A drawing area where we can edit the Glyphs within a font like <a href="https://raw.githubusercontent.com/sugarlabs/edit-fonts-activity/gh-pages/files/img/4.png">this</a><span style="line-height:1.5"> ** </span></div></div><div><ol><li><span style="line-height:1.5">Should the Glyphs be rendered in this using Cairo? </span></li><li><span style="line-height:1.5">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?</span><br></li></ol></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><span style="line-height:1.5">I found these links quite useful for getting started with Cairo</span></div></blockquote><div><ul><ul><li><span style="line-height:1.5"><a href="http://www.tortall.net/mu/wiki/CairoTutorial">http://www.tortall.net/mu/wiki/CairoTutorial</a></span></li><li><span style="line-height:1.5"><a href="http://zetcode.com/gfx/pycairo/basicdrawing/">http://zetcode.com/gfx/pycairo/basicdrawing/</a></span></li></ul></ul></div><div><span style="line-height:1.5">[regarding the way FONTS ARE MODELED in </span><a href="http://unifiedfontobject.org/versions/ufo3/index.html" style="line-height:1.5">UFOv3</a><span style="line-height:1.5">]</span><br></div><div><ol><li><span style="line-height:1.5">why do we need multiple layers in a font?(to store multiple families..?)</span><br></li><li><span style="line-height:1.5">why do we need to group glyphs? (is it only for </span>Kearning?<span style="line-height:1.5">)</span><br></li><li><span style="line-height:1.5">why do we need the image files?(are they used to render the glyphs?)</span></li></ol><div>regards,</div></div><div>Yash Agarwal</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">
</div></div></blockquote></div></div>