[Sugar-devel] loading ttf fonts in a sugar activity

Erik Blankinship erikb at mediamods.com
Tue Sep 7 14:08:34 EDT 2010


Thanks Tomeu.  The results look great.

On Wed, Sep 1, 2010 at 3:42 AM, Tomeu Vizoso <tomeu at sugarlabs.org> wrote:

> On Tue, Aug 31, 2010 at 21:20, Erik Blankinship <erikb at mediamods.com>
> wrote:
> > I am wondering if there is a sugar activity which loads in custom ttf
> fonts?
> > The almanac does not provide an example
> >
> http://wiki.sugarlabs.org/go/Development_Team/Almanac/Pango#How_do_I_control_the_appearance_of_fonts_on_a_Pango_layout.3F
> > ...but a google search suggests it should be possible with pango.  Does
> > anyone have any experience with embedding fonts into a sugar activity?  I
> > would be happy to write it up into the almanac for others benefit once I
> > figure it out.
>
> Doesn't seem to be possible to load a bundled font with pango at this
> moment: https://bugzilla.gnome.org/show_bug.cgi?id=347237
>
> But this hack seems to work, though you are not using Pango and you
> may miss some of its most advanced features:
> http://cairographics.org/freetypepython/
>
> Regards,
>
> Tomeu
>
> > _______________________________________________
> > Sugar-devel mailing list
> > Sugar-devel at lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100907/0b68bba4/attachment.htm 


More information about the Sugar-devel mailing list