Re: Rejecting and accepting fonts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I note that my path is: /usr/share/fonts/truetype/dejavu/ but even adjusting
> for that, there is no appearance of DejaVuSans in fc-list.
>
> I tried various paths like:
> /usr/share/fonts/truetype/dejavu/*
> /usr/share/fonts/truetype/
> And various slash-no-slash on the ends.

In that case:
$ cat fonts.conf
<fontconfig>
  <dir>/usr/share/fonts</dir>
  <selectfont>
    <rejectfont><glob>/usr/share/fonts/*</glob></rejectfont>
    <acceptfont>
      <glob>/usr/share/fonts/truetype</glob>
      <glob>/usr/share/fonts/truetype/dejavu</glob>
      <glob>/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf</glob>
    </acceptfont>
  </selectfont>
</fontconfig>

$ FONTCONFIG_FILE=`pwd`/fonts.conf ./fc-list/fc-list
/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf: DejaVu Sans:style=Book

This works for me. don't put a slash at the end of directory path.

-- 
Akira TAGOH
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/fontconfig




[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux