<font color="#000099"><font><font face="tahoma,sans-serif"><b>OK I think I have figured out what I am trying to accomplish.  <br>I would like to be able to include specific fonts in the file so as to have fontconfig only scan for those fonts in that directory and to not scan fo fonts on the host machine.  This way the scan would be the same no matter what machine the program is run on it would only scan the fonts on the usb device.<br>
<br>Patrick<br clear="all"></b></font></font></font><i style="color:rgb(0,153,0)"><b>&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;<br>
<br>**We are not humans having a spiritual experience;<br>   we are spirits having a human experience.<br>   Knowledge is the greatest purifier of the soul.<br><br> &gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&gt;</b></i><br>
<br><font style="color:rgb(153,51,153);font-family:comic sans ms,sans-serif" size="2"><b><i>Developer for  <a href="http://portableapps.com/" target="_blank">PortableApps.com</a>  My <a href="http://portableapps.com/node/30620" target="_blank">Current list of Apps</a> is listed.</i></b></font><br>
<br><br style="color:rgb(0,153,0)"><br><br>
<br><br><div class="gmail_quote">On Thu, Mar 1, 2012 at 04:21, Akira TAGOH <span dir="ltr">&lt;<a href="mailto:akira@tagoh.org">akira@tagoh.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Roughly speaking the cases that happens to (re-)generate caches at the<br>
runtime are:<br>
<br>
1) when there are no caches in the cache directory.<br>
2) when new fonts are available.<br>
<br>
Try to run your script with FC_DEBUG=384. that gives you a clue if<br>
fontconfig really is trying to generate caches at the runtime. if you<br>
see some logs with py2exe thing only, it might breaks something.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Thu, Mar 1, 2012 at 5:09 AM, VF2NSR &lt;<a onclick="return false;" href="mailto:vf2nsr@gmail.com">vf2nsr@gmail.com</a>&gt; wrote:<br>
&gt; Currently this is what is occurring.<br>
&gt;<br>
&gt; The program is using Python when the program runs in native python there is<br>
&gt; no delay.  When the program was  made into an executable, using py2exe,  the<br>
&gt; program shows a minimal delay as the fontconfig scan occurs and the<br>
&gt; fontconfig/cache is written.   The challenge I am facing is that the delay<br>
&gt; occurs when it is compiled with the gtk+ files ot run it without native<br>
&gt; python the scan and  subsequent creation of the fontconfig take over 2<br>
&gt; minutes.<br>
&gt;<br>
&gt; Hope that explains it?<br>
&gt;<br>
&gt; Patrick<br>
&gt; &lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;<br>
&gt;<br>
&gt; **We are not humans having a spiritual experience;<br>
&gt;    we are spirits having a human experience.<br>
&gt;    Knowledge is the greatest purifier of the soul.<br>
&gt;<br>
&gt;  &gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&gt;<br>
&gt;<br>
&gt; Developer for  PortableApps.com  My Current list of Apps is listed.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Feb 29, 2012 at 11:32, VF2NSR &lt;<a onclick="return false;" href="mailto:vf2nsr@gmail.com">vf2nsr@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Currently this is what is occurring.<br>
&gt;&gt;<br>
&gt;&gt; The program is using Python when the program runs in native python there<br>
&gt;&gt; is no delay.  When the program was  made into an executable, using py2exe,<br>
&gt;&gt; the program shows a minimal delay as the fontconfig scan occurs and the<br>
&gt;&gt; fontconfig/cache is written.   The challenge I am facing is that the delay<br>
&gt;&gt; occurs when it is compiled with the gtk+ files ot run it without native<br>
&gt;&gt; python the scan and  subsequent creation of the fontconfig take over 2<br>
&gt;&gt; minutes.<br>
&gt;&gt;<br>
&gt;&gt; Hope that explains it?<br>
&gt;&gt;<br>
&gt;&gt; Patrick<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; &lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;<br>
&gt;&gt;<br>
&gt;&gt; **We are not humans having a spiritual experience;<br>
&gt;&gt;    we are spirits having a human experience.<br>
&gt;&gt;    Knowledge is the greatest purifier of the soul.<br>
&gt;&gt;<br>
&gt;&gt;  &gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Developer for  PortableApps.com  My Current list of Apps is listed.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Feb 29, 2012 at 10:51, Akira TAGOH &lt;<a onclick="return false;" href="mailto:akira@tagoh.org">akira@tagoh.org</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I&#39;m not quite sure what you are facing. do you want to store the cache<br>
&gt;&gt;&gt; files on where you want to? though I don&#39;t know how it&#39;s related to<br>
&gt;&gt;&gt; the delay...<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I guess you didn&#39;t just run fc-cache prior to your application working?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Wed, Feb 29, 2012 at 8:52 PM, VF2NSR &lt;<a onclick="return false;" href="mailto:vf2nsr@gmail.com">vf2nsr@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; I am working on a portable program that uses the fontconfig.  Is there<br>
&gt;&gt;&gt; &gt;&gt; a<br>
&gt;&gt;&gt; &gt;&gt; way I can get fontconfig to write its directory somewhere besides the<br>
&gt;&gt;&gt; &gt;&gt; APPDATA folder?  Like have it write and store it within a seperate<br>
&gt;&gt;&gt; &gt;&gt; location<br>
&gt;&gt;&gt; &gt;&gt; on a portable drive??<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; Because of th ewriting to the temp folder in APPDATA   it delays the<br>
&gt;&gt;&gt; &gt;&gt; startup of my app by almost 2 minutes<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; Thanks in advance<br>
&gt;&gt;&gt; &gt;&gt; Patrick<br>
&gt;&gt;&gt; &gt;&gt; &lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; **We are not humans having a spiritual experience;<br>
&gt;&gt;&gt; &gt;&gt;    we are spirits having a human experience.<br>
&gt;&gt;&gt; &gt;&gt;    Knowledge is the greatest purifier of the soul.<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;  &gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; Developer for  PortableApps.com  My Current list of Apps is listed.<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt;&gt; &gt; Fontconfig mailing list<br>
&gt;&gt;&gt; &gt; <a onclick="return false;" href="mailto:Fontconfig@lists.freedesktop.org">Fontconfig@lists.freedesktop.org</a><br>
&gt;&gt;&gt; &gt; <a href="http://lists.freedesktop.org/mailman/listinfo/fontconfig" target="_blank">http://lists.freedesktop.org/mailman/listinfo/fontconfig</a><br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Akira TAGOH<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Akira TAGOH<br>
</font></span></blockquote></div><br>