On Wed, 12 Jan 2005 17:21:07 -0800 Keith Packard <keithp@keithp.com> wrote:> > Around 14 o''clock on Jan 12, "Sharon Lam" wrote: > > > By "point the cache file at a non-existant directory, which will > > (silently) fail to work" > > do you mean edit the /etc/fonts/fonts.conf file and add the tag? > > <cache>/etc/nonexistant</cache> > > This is a file name, not a directory name, so you should use something > like > > /etc/foo/bar > > insteadHow about using /dev/null? -- Ciprian Popovici
Around 23 o''clock on Jan 13, Ciprian Popovici wrote:> How about using /dev/null?I think that will be a disaster for root -- anyone who can write to /dev will probably scramble things hopelessly. There''s a complicated little locking dance involved in managing the cache file which uses rename to atomically replace the cache. You would end up with a regular file for /dev/null in this case, something you probably don''t want... -keith -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 228 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20050113/f77f9f19/attachment.pgp
Thank you for your quick reply. I''m trying to test that if I do not have write permission to a directory/disk, can I still use some fonts to display some texts when my application executes at run time. By "point the cache file at a non-existant directory, which will (silently) fail to work" do you mean edit the /etc/fonts/fonts.conf file and add the tag? <cache>/etc/nonexistant</cache>>From: Keith Packard <keithp@keithp.com> >To: "Sharon Lam" <sharon_lam_kiki@hotmail.com> >CC: fontconfig@lists.freedesktop.org, Keith Packard <keithp@keithp.com> >Subject: Re: [Fontconfig] Configuration File Format Date: Wed, 12 Jan 2005 >14:17:22 -0800 > > >Around 14 o''clock on Jan 12, "Sharon Lam" wrote: > > > Is there a way to turn off the default of the cache file so that > > the .fonts.cache-1 file will not be created for the per-user cache? > >No there isn''t. You can, of course, point the cache file at a >non-existant directory, which will (silently) fail to work. This will >have a similar effect, unless somehow the named direction is created at >some point in the future. > >Note that if you have any font directories which are out of sync with >their cache files, every application in the system will rescan those fonts >to compute their own version of the font information. As a correlary, if >every directory is in sync, the .fonts.cache-1 file will be empty. > >Can you explain what problem you''re trying to solve? Perhaps there''s a >different solution than not having a per-user cache file. > >-keith > > ><< attach3 >>_________________________________________________________________ Powerful Parental Controls Let your child discover the best the Internet has to offer. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSNĀ® Premium right now and get the first two months FREE*.
Around 14 o''clock on Jan 12, "Sharon Lam" wrote:> Is there a way to turn off the default of the cache file so that > the .fonts.cache-1 file will not be created for the per-user cache?No there isn''t. You can, of course, point the cache file at a non-existant directory, which will (silently) fail to work. This will have a similar effect, unless somehow the named direction is created at some point in the future. Note that if you have any font directories which are out of sync with their cache files, every application in the system will rescan those fonts to compute their own version of the font information. As a correlary, if every directory is in sync, the .fonts.cache-1 file will be empty. Can you explain what problem you''re trying to solve? Perhaps there''s a different solution than not having a per-user cache file. -keith -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 228 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20050112/f893dbab/attachment.pgp
Around 14 o''clock on Jan 12, "Sharon Lam" wrote:> By "point the cache file at a non-existant directory, which will (silently) > fail to work" > do you mean edit the /etc/fonts/fonts.conf file and add the tag? > <cache>/etc/nonexistant</cache>This is a file name, not a directory name, so you should use something like /etc/foo/bar instead -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 228 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20050112/d2fd4928/attachment.pgp
Hello, I have a question related to the configuration file. Is there a way to turn off the default of the cache file so that the .fonts.cache-1 file will not be created for the per-user cache? i.e. can I not generate the .fonts.cache-1 file when I run a GTK application for example? Sharon _________________________________________________________________ Powerful Parental Controls Let your child discover the best the Internet has to offer. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSNĀ® Premium right now and get the first two months FREE*.