[Sugar-devel] installing a font?
Erik Blankinship
erikb at mediamods.com
Sat Nov 26 12:16:01 EST 2011
On Mon, Oct 31, 2011 at 11:08 AM, Bert Freudenberg <bert at freudenbergs.de>wrote:
> On 26.10.2011, at 23:43, Erik Blankinship wrote:
>
> > Is there a way for an xo bundle to install a font to the system (for
> cairo to use)?
>
> No, and it shouldn't, since activities need to be self-contained.
>
> If your activity wants to use that font, then just use the font file
> directly from your activity bundle, like in a "fonts" subdirectory.
>
>
Unfortunately, the pango API does not have the capability to change font to one
that has not been installed on the system.
(You can use the pango toy api, but it appears somewhat slower
and definitely does not look as good.)
This is problematic for making activities with good typography using the
available tools on the system.
Sridhar's suggestion to install the fonts desired (required) to ~/.fonts
seems to work, but it is not a reliable solution as per the posts of other
members of the community regarding security.
A solution is required to use pango to render text in an activity. Where
would be the appropriate place to file a ticket on this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20111126/784682c5/attachment.html>
More information about the Sugar-devel
mailing list