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

Tomeu Vizoso tomeu at sugarlabs.org
Wed Sep 1 03:42:41 EDT 2010


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
>
>


More information about the Sugar-devel mailing list