<br><br><div class="gmail_quote">On Mon, Oct 31, 2011 at 11:08 AM, Bert Freudenberg <span dir="ltr"><<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On 26.10.2011, at 23:43, Erik Blankinship wrote:<br>
<br>
> Is there a way for an xo bundle to install a font to the system (for cairo to use)?<br>
<br>
</div>No, and it shouldn't, since activities need to be self-contained.<br>
<br>
If your activity wants to use that font, then just use the font file directly from your activity bundle, like in a "fonts" subdirectory.<br><br></blockquote><div><br></div><div>Unfortunately, <span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">the pango API does not have the capability to change font to </span><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">one that has not been installed on the system.</span></div>
<div><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><br></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><font class="Apple-style-span" color="#222222" face="arial, sans-serif">(You can use the pango toy api, but it appears somewhat slower and definitely does not look as good.)</font></span></div>
<div><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><br></span></div><div><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">This is problematic for making activities with good typography using the available tools on the system.</span></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><br></font></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">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.</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">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?</span></div>
</div>