>|> >|> <match target="font">>|> >|> <test name="family"> >|> >|> <string>Luxi Mono</string> >|> >|> </test> >|> >|> <edit name="spacing" mode="assign"> >|> >|> <int>100</int> >|> >|> </edit> >|> >|> </match> >|> >| >|> >|target="scan" >|I forgot to include the need to rebuild the cache file >|contents >| >| # fc-cache -f /usr/share/fonts/luxi Getting better, but not quite there yet: # fc-list "Luxi Mono" : family style file spacing /usr/share/fonts/luxi/luximbi.ttf: Luxi Mono:style=Bold Oblique /usr/share/fonts/luxi/luximb.ttf: Luxi Mono:style=Bold:spacing=100 /usr/share/fonts/luxi/luximri.ttf: Luxi Mono:style=Oblique:spacing=100 /usr/share/fonts/luxi/luximr.ttf: Luxi Mono:style=Regular:spacing=100
>|Getting better, but not quite there yet:>| >|# fc-list "Luxi Mono" : family style file spacing >|/usr/share/fonts/luxi/luximbi.ttf: Luxi Mono:style=Bold Oblique >|/usr/share/fonts/luxi/luximb.ttf: Luxi Mono:style=Bold:spacing=100 >|/usr/share/fonts/luxi/luximri.ttf: Luxi Mono:style=Oblique:spacing=100 >|/usr/share/fonts/luxi/luximr.ttf: Luxi Mono:style=Regular:spacing=100 Success, using <match target="scan"> <test name="family"> <string>Luxi Mono</string> </test> <edit name="spacing" mode="assign"> <int>100</int> </edit> </match> <match target="scan"> <test name="family"> <string>Luxi Mono</string> </test> <test name="style"> <string>Bold Oblique</string> </test> <edit name="spacing" mode="assign"> <int>100</int> </edit> </match> though I don''t know why the second <match> ... </match> section seems to be required. Thanks for your help. Bob T.
On Sat, 2006-11-04 at 07:40 -0500, Bob Tennent wrote:> though I don''t know why the second <match> ... </match> section seems to > be required.I got it to work without the second section, but I also made sure to run the command as root so the system-wide cache file would be modified instead of only a per-user cache file. fontconfig uses per-user cache files only when a system-wide cache file is not found. Yes, this could be considered a misfeature, but it is intentional at least. fc-cache should probably emit a warning when an unwritable cache file already exists for some directory. You can explore the relationship between directories and cache files using the fc-cat command; fc-cat -v will list the directory and associated cache file names: $ fc-cat -v /local/xorg/lib/X11/fonts/TTF | head -2 Directory: /local/xorg/lib/X11/fonts/TTF Cache: /home/keithp/.fontconfig/afd267dbdc00aa02fa799a03524c6f9b-x86.cache-2 If you remove the cache file you can then re-run the command and see if another cache file for the same directory exists on your system. Eventually you should be able to clean your system of cache files for a particular directory. -- keith.packard@intel.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20061104/8ac5b8b8/attachment.pgp